I've spent way too long trying to figure this out in Swift 3. I've found tutorials that are relevant for Swift 2 and iOS < 10, but none for the current versions.
I have a live camera view stream using AVCaptureSession and AVCaptureVideoPreviewLayer. I want to capture a screenshot of this, in effect taking a picture. Has anyone done this or have tutorials/examples?
I've spent way too long trying to figure this out in Swift 3. I've found tutorials that are relevant for Swift 2 and iOS < 10, but none for the current versions.
I have a live camera view stream using AVCaptureSession and AVCaptureVideoPreviewLayer. I want to capture a screenshot of this, in effect taking a picture. Has anyone done this or have tutorials/examples?
Thanks.