UICollectionViewDropDelegate
The interface for handling drops in a collection view.
Declaration
@MainActor protocol UICollectionViewDropDelegate : NSObjectProtocolMentioned in
Overview
Implement this protocol in the object that you use to incorporate dropped data into your collection view. The only required method of this protocol is the collectionView(_:performDropWith:) method, but you can implement other methods as needed to customize the drop behavior of your collection view.
Assign your custom delegate object to the dropDelegate property of your collection view.
Topics
Declaring support for handling drops
Incorporating the dropped data
Tracking the drag movements
collectionView(_:dropSessionDidUpdate:withDestinationIndexPath:)collectionView(_:dropSessionDidEnter:)collectionView(_:dropSessionDidExit:)collectionView(_:dropSessionDidEnd:)