Contents

isCameraEnabled

A Boolean value that indicates whether the camera is currently enabled.

Declaration

var isCameraEnabled: Bool { get set }

Discussion

The default value of this property is false. Set this property to true to enable the camera. When the app runs in visionOS, the value in this property is false and assigning a new value has no effect.

You can use this property for key-value observing.

See Also

Inspecting a Screen Recorder