Committed by
GitHub
Merge pull request #527 from jorgenpt/ios-build-fix
fix: Fix bad `AVCaptureDevice.isFocusModeSupported` call
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -135,7 +135,7 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega | @@ -135,7 +135,7 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega | ||
| 135 | device.addObserver(self, forKeyPath: #keyPath(AVCaptureDevice.torchMode), options: .new, context: nil) | 135 | device.addObserver(self, forKeyPath: #keyPath(AVCaptureDevice.torchMode), options: .new, context: nil) |
| 136 | do { | 136 | do { |
| 137 | try device.lockForConfiguration() | 137 | try device.lockForConfiguration() |
| 138 | - if device.isFocusModeSupported(focusMode: .continuousAutoFocus) { | 138 | + if device.isFocusModeSupported(.continuousAutoFocus) { |
| 139 | device.focusMode = .continuousAutoFocus | 139 | device.focusMode = .continuousAutoFocus |
| 140 | } | 140 | } |
| 141 | if #available(iOS 15.4, *) { | 141 | if #available(iOS 15.4, *) { |
-
Please register or login to post a comment