Contents

collectionView(_:previewForDismissingContextMenuWithConfiguration:)

Returns the destination view when dismissing a context menu.

Declaration

optional func collectionView(_ collectionView: UICollectionView, previewForDismissingContextMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview?

Parameters

  • collectionView:

    The collection view object requesting this information.

  • configuration:

    The configuration of the menu being displayed.

Return Value

A targeted preview object describing the dismissal preview. The interaction animates the presented menu to the preview. Use this method to customize the dismissal animation.

See Also

Deprecated