Contents

previewLayer

The layer for which the configurator adjusts display properties to match the device’s state.

Declaration

weak var previewLayer: CALayer? { get }

Discussion

The value of this property is the CALayer instance that you provided when instantiating the configurator. You may specify either an AVCaptureVideoPreviewLayer or another CALayer instance that displays a camera’s video preview. AVCaptureExternalDisplayConfiguratorholds a weak reference to the layer. If the layer is released, this property returns nil.

See Also

Inspecting the configurator