I have an application that adds some live effects, animations and images to preview view in AV Foundation camera. I can capture video of it with ReplayKit and do hardware screenshot(holding sleep button and pressing home button). However I need a button that makes screenshot. All the methods of taking screenshot like UIGraphicsGetImageFromCurrentImageContext result in black screen where video preview is. All other elements are on the screenshot except the image. It seems odd that Apple doesn't provide method for their hardware screenshot. What I'm missing?
Screenshot of AVCaptureVideoPreviewLayer
Add a Comment