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

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

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?