---
title: RPPreviewViewController
framework: replaykit
role: symbol
role_heading: Class
path: replaykit/rppreviewviewcontroller
---

# RPPreviewViewController

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

## Declaration

```swift
class RPPreviewViewController
```

## Overview

Overview Upon completion of a successful recording, the preview view controller is passed into the completion handler for stopRecording(handler:).

## Topics

### Displaying the Preview UI

- [mode](replaykit/rppreviewviewcontroller/mode.md)
- [RPPreviewViewControllerMode](replaykit/rppreviewviewcontrollermode.md)
- [previewControllerDelegate](replaykit/rppreviewviewcontroller/previewcontrollerdelegate.md)
- [RPPreviewViewControllerDelegate](replaykit/rppreviewviewcontrollerdelegate.md)

## Relationships

### Inherits From

- [NSViewController](appkit/nsviewcontroller.md)
- [UIViewController](uikit/uiviewcontroller.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSEditor](appkit/nseditor.md)
- [NSExtensionRequestHandling](foundation/nsextensionrequesthandling.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSeguePerforming](appkit/nssegueperforming.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIActivityItemsConfigurationProviding](uikit/uiactivityitemsconfigurationproviding.md)
- [UIAppearanceContainer](uikit/uiappearancecontainer.md)
- [UIContentContainer](uikit/uicontentcontainer.md)
- [UIFocusEnvironment](uikit/uifocusenvironment.md)
- [UIPasteConfigurationSupporting](uikit/uipasteconfigurationsupporting.md)
- [UIResponderStandardEditActions](uikit/uiresponderstandardeditactions.md)
- [UIStateRestoring](uikit/uistaterestoring.md)
- [UITraitChangeObservable](uikit/uitraitchangeobservable-67e94.md)
- [UITraitEnvironment](uikit/uitraitenvironment.md)
- [UIUserActivityRestoring](uikit/uiuseractivityrestoring.md)

## See Also

### Replay Sharing

- [Recording and Streaming Your macOS App](replaykit/recording-and-streaming-your-macos-app.md)
- [RPScreenRecorder](replaykit/rpscreenrecorder.md)
