tableView(_:willDisplayContextMenu:animator:)
Informs the delegate when a context menu will appear.
Declaration
optional func tableView(_ tableView: UITableView, willDisplayContextMenu configuration: UIContextMenuConfiguration, animator: (any UIContextMenuInteractionAnimating)?)Parameters
- tableView:
The table view informing the delegate of this event.
- configuration:
The configuration of the menu to display.
- animator:
The animations to run alongside the appearance transition.
See Also
Managing context menus
Adding context menus in your apptableView(_:contextMenuConfigurationForRowAt:point:)tableView(_:previewForDismissingContextMenuWithConfiguration:)tableView(_:previewForHighlightingContextMenuWithConfiguration:)tableView(_:willEndContextMenuInteraction:animator:)tableView(_:willPerformPreviewActionForMenuWith:animator:)