AVCam-iOS: Using AVFoundation to Capture Images and Movies

Last Revision:
Version 7.1, 2017-06-06
Updated for new camera features in iOS 11.0.
(Full Revision History)
Build Requirements:
Xcode 9.0, iOS 11.0 SDK
Runtime Requirements:
iOS 11.0 or later

The sample has a record button for recording movies, a photo button for capturing photos, a Live Photo mode button for enabling Live Photo capture, a Depth Data delivery button for enabling depth data delivery in capture, a capture mode control for toggling between photo and movie capture modes, and a camera button for switching between front and back cameras (on supported devices). AVCam runs only on an actual device, either an iPad or iPhone, and cannot be run in Simulator.