Skip to content

Commit 220cbb8

Browse files
committed
Silence Periphery for retained observer
1 parent 4acd1ab commit 220cbb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WooCommerce/Classes/POS/Presentation/Barcode Scanning/BarcodeScannerContainer.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ struct BarcodeScannerContainerRepresentable: UIViewControllerRepresentable {
5353
/// based on VoiceOver state. Uses GameController framework for optimal performance when possible,
5454
/// and falls back to UIKit UIPress events when VoiceOver is enabled.
5555
final class GameControllerBarcodeScannerHostingController: UIHostingController<EmptyView> {
56+
/// periphery: ignore - retain `gameControllerObserver` to keep it alive
5657
private(set) var gameControllerObserver: GameControllerBarcodeObserver?
58+
5759
private(set) var uiKitObserver: UIKitBarcodeObserver?
5860

5961
private let configuration: HIDBarcodeParserConfiguration

0 commit comments

Comments
 (0)