Gallery
Gallery copied to clipboard
CameraMan.swift has a lot of deprecated methods in iOS
Hi guys, here are some of the warning alerts from Xcode: These are all in the CameraMan.swift file
'AVCaptureStillImageOutput' was deprecated in iOS 10.0: Use AVCapturePhotoOutput instead. 'devices()' was deprecated in iOS 10.0: Use AVCaptureDeviceDiscoverySession instead. 'AVCaptureStillImageOutput' was deprecated in iOS 10.0: Use AVCapturePhotoOutput instead. 'AVVideoCodecJPEG' was deprecated in iOS 11.0: renamed to 'AVVideoCodecType.jpeg' 'AVCaptureStillImageOutput' was deprecated in iOS 10.0: Use AVCapturePhotoOutput instead. 'isFlashModeSupported' was deprecated in iOS 10.0: Use AVCapturePhotoOutput's -supportedFlashModes instead. 'flashMode' was deprecated in iOS 10.0: Use AVCapturePhotoSettings.flashMode instead.
Can someone please rewrite the code in the GitHub CameraMan.swift file? Thank you.