ImagePicker
ImagePicker copied to clipboard
'flashMode' and 'isflashMode' was deprecated in iOS 10.0: Use AVCapturePhotoSettings.flashMode instead.
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}
queue.async { [self] in
self.lock {
device.flashMode = mode
// let settings = getSettings(camera: camera!, flashMode: flashMode)
}
}
}
Any chance to get some help here? I don't have the bandwidth to fix issues but I can take some time to review them and merge them.