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
collectionView(_:targetIndexPathForMoveFromItemAt:toProposedIndexPath:)collectionView(_:contextMenuConfigurationForItemAt:point:)collectionView(_:previewForHighlightingContextMenuWithConfiguration:)collectionView(_:shouldShowMenuForItemAt:)collectionView(_:canPerformAction:forItemAt:withSender:)collectionView(_:performAction:forItemAt:withSender:)