Hi,
While maintaining some old Objective-C code, I encountered this statement:
if ([videoDevice hasFlash])
videoDevice.flashMode = AVCaptureFlashModeOff;
'videoDevice' is an instance of AVCaptureDevice.
The compiler issues this warning: "flashMode is deprecated. Use AVCapturePhotoSettings.flashMode instead."
I tried that:
if ([videoDevice hasFlash])
videoDevice.AVCapturePhotoSettings.flashMode = AVCaptureFlashModeOff;
Unsurprisingly, this code doesn't compile because there is no such property on AVCaptureDevice.
What is the compiler asking me to do here?
Thanks,
Frank