Contents

contextMenuInteraction(_:willPerformPreviewActionForMenuWith:animator:)

Informs the delegate when a preview action begins.

Declaration

optional func contextMenuInteraction(_ interaction: UIContextMenuInteraction, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: any UIContextMenuInteractionCommitAnimating)

Parameters

  • interaction:

    The interaction object that triggered the interaction.

  • configuration:

    The context menu configuration.

  • animator:

    The animator to configure custom animations.

See Also

Responding to the menu’s appearance