AVCaptureVideoPreviewLayer and preview from camera position
I'm developing an app that permits user to takes photo. I've started using AVCam apple provides but i'm actually have a problem Simply i cannot position the camera layer where i want but it's positioned automatically on center of the View On the left side you can see what i actually have, on the right side what i'd like to have. The View that contains the preview that comes from the camera is a UIView subclass and this is the code class AVPreviewView : UIView { override class func layerClass() -> AnyClass { return AVCaptureVideoPreviewLayer.self } func session () -> AVCaptureSession { return