@@ -85,6 +85,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
85
85
public var simulatedData = " "
86
86
public var shouldVibrateOnSuccess : Bool
87
87
public var isTorchOn : Bool
88
+ public var isPaused : Bool
88
89
public var isGalleryPresented : Binding < Bool >
89
90
public var videoCaptureDevice : AVCaptureDevice ?
90
91
public var completion : ( Result < ScanResult , ScanError > ) -> Void
@@ -99,6 +100,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
99
100
simulatedData: String = " " ,
100
101
shouldVibrateOnSuccess: Bool = true ,
101
102
isTorchOn: Bool = false ,
103
+ isPaused: Bool = false ,
102
104
isGalleryPresented: Binding < Bool > = . constant( false ) ,
103
105
videoCaptureDevice: AVCaptureDevice ? = AVCaptureDevice . bestForVideo,
104
106
completion: @escaping ( Result < ScanResult , ScanError > ) -> Void
@@ -112,6 +114,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
112
114
self . simulatedData = simulatedData
113
115
self . shouldVibrateOnSuccess = shouldVibrateOnSuccess
114
116
self . isTorchOn = isTorchOn
117
+ self . isPaused = isPaused
115
118
self . isGalleryPresented = isGalleryPresented
116
119
self . videoCaptureDevice = videoCaptureDevice
117
120
self . completion = completion
0 commit comments