Initializer

init(session:)

Initializes a preview layer with a given capture session.

Declaration

init(session: AVCaptureSession)

Parameters

session

The capture session from which to derive the preview.

Return Value

A preview layer initialized to use session.

See Also

Creating a Preview Layer

init(sessionWithNoConnection: AVCaptureSession)

Initializes a preview layer using a given capture session but without making any connections.