A Core Animation layer that displays the video as it’s captured.
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
AVCaptureVideoPreviewLayer is a subclass of
CALayer that you use to display video as it’s captured by an input device.
You use this preview layer in conjunction with a capture session, as shown in the following code fragment.
var isPreviewing: Bool
A Boolean value that indicates whether the layer is rendering video frames from its source.
Converting Between Coordinate Systems