<!--
{
  "availability" : [
    "iOS: 9.0.0 - 27.0.0",
    "iPadOS: 9.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 11.0.0 - 27.0.0",
    "tvOS: 10.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ReplayKit",
  "identifier" : "/documentation/ReplayKit/RPPreviewViewController",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ReplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)RPPreviewViewController"
  },
  "title" : "RPPreviewViewController"
}
-->

# RPPreviewViewController

An object that displays a user interface where users preview and edit a screen recording that you create with ReplayKit.

```
class RPPreviewViewController
```

## Overview

Upon completion of a successful recording, the preview view controller is passed into the completion handler for [`stopRecording(handler:)`](/documentation/ReplayKit/RPScreenRecorder/stopRecording(handler:)).

## Topics

### Displaying the Preview UI

[`mode`](/documentation/ReplayKit/RPPreviewViewController/mode)

The type of screen that appears when the view is presented.

[`RPPreviewViewControllerMode`](/documentation/ReplayKit/RPPreviewViewControllerMode)

The modes used to determine whether the preview view controller or the share screen appears when editing a replay.

[`previewControllerDelegate`](/documentation/ReplayKit/RPPreviewViewController/previewControllerDelegate)

The preview view controller’s delegate.

[`RPPreviewViewControllerDelegate`](/documentation/ReplayKit/RPPreviewViewControllerDelegate)

The protocol you implement to respond to changes to a screen-recording user interface.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)