You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
queue.async { [self] in
self.lock {
device.flashMode = mode
// let settings = getSettings(camera: camera!, flashMode: flashMode)
}
}
}
The text was updated successfully, but these errors were encountered:
willby5890
changed the title
'flashMode' was deprecated in iOS 10.0: Use AVCapturePhotoSettings.flashMode instead.
'flashMode' and 'isflashMode' was deprecated in iOS 10.0: Use AVCapturePhotoSettings.flashMode instead.
Dec 5, 2020
The flashMode was deprecated and a warning shows in CameraMan.swift. The new method is not easily applied.
func flash(_ mode: AVCaptureDevice.FlashMode) {
guard let device = currentInput?.device, device.isFlashModeSupported(mode) else { return }
// guard let device = getSettings(camera: camera, flashMode: flashMode) else {return}
}
The text was updated successfully, but these errors were encountered: