hyperoslo / hyperoslo/Gallery

CameraMan.swift has a lot of deprecated methods in iOS

Open
#201 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
1.4k
Forks
271
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.