How to use AVCapturePhotoOutput
Updated to Swift 4 Hi it’s really easy to use AVCapturePhotoOutput. You need the AVCapturePhotoCaptureDelegate which returns the CMSampleBuffer. You can get as well a preview image if you tell the AVCapturePhotoSettings the previewFormat class CameraCaptureOutput: NSObject, AVCapturePhotoCaptureDelegate { let cameraOutput = AVCapturePhotoOutput() func capturePhoto() { let settings = AVCapturePhotoSettings() let previewPixelType = settings.availablePreviewPhotoPixelFormatTypes.first! let … Read more