---
title: "videoEditorControllerDidCancel(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uivideoeditorcontrollerdelegate/videoeditorcontrollerdidcancel(_:)"
---

# videoEditorControllerDidCancel(_:)

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

## Declaration

```swift
optional func videoEditorControllerDidCancel(_ editor: UIVideoEditorController)
```

## Parameters

- `editor`: The video editor that the user canceled, not wanting to save changes.

## See Also

### Closing the video editor

- [videoEditorController(_:didSaveEditedVideoToPath:)](uikit/uivideoeditorcontrollerdelegate/videoeditorcontroller(_:didsaveeditedvideotopath:).md)
