---
title: isCameraEnabled
framework: replaykit
role: symbol
role_heading: Instance Property
path: replaykit/rpscreenrecorder/iscameraenabled
---

# isCameraEnabled

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

## Declaration

```swift
var isCameraEnabled: Bool { get set }
```

## Discussion

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. note: In your app’s Info.plist file, you must set the Privacy - Camera Usage Description key with a string that describes how your app uses the camera footage.

## See Also

### Inspecting a Screen Recorder

- [isAvailable](replaykit/rpscreenrecorder/isavailable.md)
- [isRecording](replaykit/rpscreenrecorder/isrecording.md)
- [isMicrophoneEnabled](replaykit/rpscreenrecorder/ismicrophoneenabled.md)
- [cameraPreviewView](replaykit/rpscreenrecorder/camerapreviewview.md)
- [cameraPosition](replaykit/rpscreenrecorder/cameraposition.md)
- [RPCameraPosition](replaykit/rpcameraposition.md)
- [delegate](replaykit/rpscreenrecorder/delegate.md)
- [RPScreenRecorderDelegate](replaykit/rpscreenrecorderdelegate.md)
