flashMode' was deprecated in iOS 10.0: Use AVCapturePhotoSettings.flashMode instead.
'isFlashModeSupported' was deprecated in iOS 10.0: Use AVCapturePhotoOutput's -supportedFlashModes instead.
-AVCaptureStillImageOutput' was deprecated in iOS 10.0: Use AVCapturePhotoOutput instead.
could you resolve this issues ?