Video with AVFoundation, Episode 6: Access the Camera | Kodeco, the new raywenderlich.com

Use AVFoundation to access the camera and show a live preview on the screen.


This is a companion discussion topic for the original entry at https://www.kodeco.com/21460315-video-with-avfoundation/lessons/6

Hello Douglas,

Very well explained tutorial.
I’ve noticed that you don’t check the permission before configuring the capture session.

AVCaptureDevice.authorizationStatus(for: .video)

Is it on purpose ? If yes, in which case should ask for the user permission?

Thanks