---
title: cameraPreviewView
framework: replaykit
role: symbol
role_heading: Instance Property
path: replaykit/rpscreenrecorder/camerapreviewview
---

# cameraPreviewView

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

## Declaration

```swift
var cameraPreviewView: UIView? { get }
```

```swift
var cameraPreviewView: NSView? { get }
```

## Discussion

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

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