<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIVideoEditorControllerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIVideoEditorControllerDelegate"
  },
  "title" : "UIVideoEditorControllerDelegate"
}
-->

# UIVideoEditorControllerDelegate

A set of methods that your delegate object must implement to respond to the video editor.

```
@MainActor protocol UIVideoEditorControllerDelegate : NSObjectProtocol
```

## Overview

The methods of this protocol notify your delegate when the system has saved an edited movie or the user has canceled editing to discard any changes. There’s also a method for responding to errors encountered by the video editor.

The delegate methods are responsible for dismissing the video editor when the operation completes. To dismiss the editor, call the [`dismiss(animated:completion:)`](/documentation/UIKit/UIViewController/dismiss(animated:completion:)) method of the parent controller responsible for displaying the video editor. The video editor is described in [`UIVideoEditorController`](/documentation/UIKit/UIVideoEditorController).

## Topics

### Closing the video editor

[`videoEditorController(_:didSaveEditedVideoToPath:)`](/documentation/UIKit/UIVideoEditorControllerDelegate/videoEditorController(_:didSaveEditedVideoToPath:))

Notifies the delegate after the system finishes saving an edited movie.

[`videoEditorControllerDidCancel(_:)`](/documentation/UIKit/UIVideoEditorControllerDelegate/videoEditorControllerDidCancel(_:))

Notifies the delegate when the user cancels a movie editing operation.

### Handling errors

[`videoEditorController(_:didFailWithError:)`](/documentation/UIKit/UIVideoEditorControllerDelegate/videoEditorController(_:didFailWithError:))

Notifies the delegate when the video editor is unable to load or save a movie.



---

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)