---
title: UIContextMenuInteractionCommitAnimating
framework: uikit
role: symbol
role_heading: Protocol
path: uikit/uicontextmenuinteractioncommitanimating
---

# UIContextMenuInteractionCommitAnimating

Methods adopted by system-supplied animator objects when committing preview-related animations.

## Declaration

```swift
@MainActor protocol UIContextMenuInteractionCommitAnimating : UIContextMenuInteractionAnimating
```

## Overview

Overview When the user taps in a preview interface to dismiss it, UIKit creates an object that adopts this protocol and passes it to your UIContextMenuInteractionDelegate method. Use the object to add any custom animations that you want to run alongside the dismissal animations.

## Topics

### Specifying the Commit Style

- [preferredCommitStyle](uikit/uicontextmenuinteractioncommitanimating/preferredcommitstyle.md)
- [UIContextMenuInteractionCommitStyle](uikit/uicontextmenuinteractioncommitstyle.md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [UIContextMenuInteractionAnimating](uikit/uicontextmenuinteractionanimating.md)

## See Also

### Responding to the menu’s appearance

- [contextMenuInteraction(_:willPerformPreviewActionForMenuWith:animator:)](uikit/uicontextmenuinteractiondelegate/contextmenuinteraction(_:willperformpreviewactionformenuwith:animator:).md)
