Contents

cameraPreviewView

A view containing the contents of the front-facing camera.

Declaration

var cameraPreviewView: UIView? { get }
var cameraPreviewView: NSView? { get }

Discussion

When the value in the isCameraEnabled property is true, this property contains a view with the live camera view. If the camera isn’t enabled, the value in this property is nil. When the app runs in visionOS, the value in this property is nil.

See Also

Inspecting a Screen Recorder