collectionView(_:previewForHighlightingContextMenuWithConfiguration:)
Returns a view to override the default preview the collection view created.
Declaration
optional func collectionView(_ collectionView: UICollectionView, previewForHighlightingContextMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview?Parameters
- collectionView:
The collection view object requesting this information.
- configuration:
The configuration of the menu being highlighted.
Return Value
A targeted preview object describing the highlight preview.
See Also
Deprecated
collectionView(_:targetIndexPathForMoveFromItemAt:toProposedIndexPath:)collectionView(_:contextMenuConfigurationForItemAt:point:)collectionView(_:previewForDismissingContextMenuWithConfiguration:)collectionView(_:shouldShowMenuForItemAt:)collectionView(_:canPerformAction:forItemAt:withSender:)collectionView(_:performAction:forItemAt:withSender:)