init(device:previewLayer:)
Creates a coordinator that provides separate compensation angles for content your app takes with a capture device, and for your app’s camera preview.
Declaration
init(device: AVCaptureDevice, previewLayer: CALayer?)Parameters
- device:
A capture device the new coordinator monitors to track its physical rotation to calculate its Videorotationangleforhorizonlevelcapture property.
- previewLayer:
A layer that displays a camera preview the new coordinator monitors to calculate its Videorotationangleforhorizonlevelpreview property.