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

# UIContextMenuInteractionCommitAnimating

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

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

## 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`](/documentation/UIKit/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`](/documentation/UIKit/UIContextMenuInteractionCommitAnimating/preferredCommitStyle)

The preferred animation style triggered when the user taps the preview.

[`UIContextMenuInteractionCommitStyle`](/documentation/UIKit/UIContextMenuInteractionCommitStyle)

Constants that control the interaction commit style.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`UIContextMenuInteractionAnimating`](/documentation/UIKit/UIContextMenuInteractionAnimating)

---

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)