@@ -85,6 +85,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
8585 public var simulatedData = " "
8686 public var shouldVibrateOnSuccess : Bool
8787 public var isTorchOn : Bool
88+ public var isPaused : Bool
8889 public var isGalleryPresented : Binding < Bool >
8990 public var videoCaptureDevice : AVCaptureDevice ?
9091 public var completion : ( Result < ScanResult , ScanError > ) -> Void
@@ -99,6 +100,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
99100 simulatedData: String = " " ,
100101 shouldVibrateOnSuccess: Bool = true ,
101102 isTorchOn: Bool = false ,
103+ isPaused: Bool = false ,
102104 isGalleryPresented: Binding < Bool > = . constant( false ) ,
103105 videoCaptureDevice: AVCaptureDevice ? = AVCaptureDevice . bestForVideo,
104106 completion: @escaping ( Result < ScanResult , ScanError > ) -> Void
@@ -112,6 +114,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
112114 self . simulatedData = simulatedData
113115 self . shouldVibrateOnSuccess = shouldVibrateOnSuccess
114116 self . isTorchOn = isTorchOn
117+ self . isPaused = isPaused
115118 self . isGalleryPresented = isGalleryPresented
116119 self . videoCaptureDevice = videoCaptureDevice
117120 self . completion = completion
0 commit comments