STPreviewView

@interface STPreviewView

A subclass of UIView to represent the camera preview and extendes from UIView Which hold the preview layer to customize and view the camera frames

  • Camera Preview layer

    Declaration

    Objective-C

    @property (readonly, nonatomic) AVCaptureVideoPreviewLayer *previewLayer;

    Swift

    var previewLayer: AVCaptureVideoPreviewLayer! { get }