Really appreciate this course, Brian. Thank you for taking the time to make it. Looking forward to purchasing the Podcasts one after this one is completed.
Just a tip that may help anyone trying to complete the following line in Swift 4.1. In Brian's lesson, the line is:
let captureDevice = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeVideo)
For Swift 4.1, I found the line to be:
guard let captureDevice = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .back) else { return }
Note the AVCaptureDevice returned is actually an optional hence the 'guard let' and the built in camera is the Wide Angle not the Dual camera. (This is what took me the longest to figure out why the app didn't crash as expected, but Google saved the day).