@@ -81,7 +81,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
81
81
public let manualSelect : Bool
82
82
public let scanInterval : Double
83
83
public let showViewfinder : Bool
84
- public let requirePhotoOutput : Bool
84
+ public let requiresPhotoOutput : Bool
85
85
public var simulatedData = " "
86
86
public var shouldVibrateOnSuccess : Bool
87
87
public var isTorchOn : Bool
@@ -96,7 +96,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
96
96
manualSelect: Bool = false ,
97
97
scanInterval: Double = 2.0 ,
98
98
showViewfinder: Bool = false ,
99
- requirePhotoOutput : Bool = true ,
99
+ requiresPhotoOutput : Bool = true ,
100
100
simulatedData: String = " " ,
101
101
shouldVibrateOnSuccess: Bool = true ,
102
102
isTorchOn: Bool = false ,
@@ -109,7 +109,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
109
109
self . scanMode = scanMode
110
110
self . manualSelect = manualSelect
111
111
self . showViewfinder = showViewfinder
112
- self . requirePhotoOutput = requirePhotoOutput
112
+ self . requiresPhotoOutput = requiresPhotoOutput
113
113
self . scanInterval = scanInterval
114
114
self . simulatedData = simulatedData
115
115
self . shouldVibrateOnSuccess = shouldVibrateOnSuccess
@@ -136,6 +136,14 @@ public struct CodeScannerView: UIViewControllerRepresentable {
136
136
137
137
}
138
138
139
+ extension CodeScannerView {
140
+
141
+ @available ( * , deprecated, renamed: " requiresPhotoOutput " )
142
+ public var requirePhotoOutput : Bool {
143
+ requiresPhotoOutput
144
+ }
145
+ }
146
+
139
147
@available ( macCatalyst 14 . 0 , * )
140
148
struct CodeScannerView_Previews : PreviewProvider {
141
149
static var previews : some View {
0 commit comments