@@ -81,7 +81,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
8181 public let manualSelect : Bool
8282 public let scanInterval : Double
8383 public let showViewfinder : Bool
84- public let requirePhotoOutput : Bool
84+ public let requiresPhotoOutput : Bool
8585 public var simulatedData = " "
8686 public var shouldVibrateOnSuccess : Bool
8787 public var isTorchOn : Bool
@@ -96,7 +96,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
9696 manualSelect: Bool = false ,
9797 scanInterval: Double = 2.0 ,
9898 showViewfinder: Bool = false ,
99- requirePhotoOutput : Bool = true ,
99+ requiresPhotoOutput : Bool = true ,
100100 simulatedData: String = " " ,
101101 shouldVibrateOnSuccess: Bool = true ,
102102 isTorchOn: Bool = false ,
@@ -109,7 +109,7 @@ public struct CodeScannerView: UIViewControllerRepresentable {
109109 self . scanMode = scanMode
110110 self . manualSelect = manualSelect
111111 self . showViewfinder = showViewfinder
112- self . requirePhotoOutput = requirePhotoOutput
112+ self . requiresPhotoOutput = requiresPhotoOutput
113113 self . scanInterval = scanInterval
114114 self . simulatedData = simulatedData
115115 self . shouldVibrateOnSuccess = shouldVibrateOnSuccess
@@ -136,6 +136,14 @@ public struct CodeScannerView: UIViewControllerRepresentable {
136136
137137}
138138
139+ extension CodeScannerView {
140+
141+ @available ( * , deprecated, renamed: " requiresPhotoOutput " )
142+ public var requirePhotoOutput : Bool {
143+ requiresPhotoOutput
144+ }
145+ }
146+
139147@available ( macCatalyst 14 . 0 , * )
140148struct CodeScannerView_Previews : PreviewProvider {
141149 static var previews : some View {
0 commit comments