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
AVCaptureDevice.requestAccess(for: .video, completionHandler: { granted in
if granted {
print("granted")
} else {
print("unauthorized")
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment