AVCam-iOS: Using AVFoundation to Capture Images and Movies
Version 7.0, 2017-06-06
Updated for new camera features in iOS 11.0.
(Full Revision History)
Xcode 9.0, iOS 11.0 SDK
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.