Instance Property

videoPreviewLayer

The video preview layer associated with the connection.

Declaration

var videoPreviewLayer: AVCaptureVideoPreviewLayer? { get }

Discussion

This property is the set if you initialized the connection using init(inputPort:videoPreviewLayer:) or connectionWithInputPort:videoPreviewLayer:.

See Also

Configuration

var isEnabled: Bool

Indicates whether the connection is enabled.

var isActive: Bool

Indicates whether the connection is active.

var inputPorts: [AVCaptureInput.Port]

The connection’s input ports.

var output: AVCaptureOutput?

The connection’s output port.