Contents

collectionView(_:willDisplayContextMenu:animator:)

Informs the delegate when a context menu will appear.

Declaration

optional func collectionView(_ collectionView: UICollectionView, willDisplayContextMenu configuration: UIContextMenuConfiguration, animator: (any UIContextMenuInteractionAnimating)?)

Parameters

  • collectionView:

    The collection view that informs 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