Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Youtube: https://www.youtube.com/watch?v=7AlZxClmhPw
// Source: https://hashaam.com/2020/07/30/creating-camera-application-with-avfoundation/
import AVFoundation
let status = AVCaptureDevice.authorizationStatus(for: .video)
switch status {
case .authorized:
print("authorized")
case .notDetermined:
print("authorization not requested yet")
default:
print("authorization denied")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment