tableView(_:willPerformPreviewActionForMenuWith:animator:)
Informs the delegate when a user triggers a commit by tapping the preview.
Declaration
optional func tableView(_ tableView: UITableView, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: any UIContextMenuInteractionCommitAnimating)Parameters
- tableView:
The table view informing the delegate of this event.
- configuration:
The configuration of the menu being displayed.
- animator:
The animations to run alongside the commit transition.
See Also
Managing context menus
Adding context menus in your apptableView(_:contextMenuConfigurationForRowAt:point:)tableView(_:previewForDismissingContextMenuWithConfiguration:)tableView(_:previewForHighlightingContextMenuWithConfiguration:)tableView(_:willDisplayContextMenu:animator:)tableView(_:willEndContextMenuInteraction:animator:)