collectionView(_:dragSessionWillBegin:)
Notifies you that a drag session is about to begin for the collection view.
Declaration
optional func collectionView(_ collectionView: UICollectionView, dragSessionWillBegin session: any UIDragSession)Parameters
- collectionView:
The collection view from which the drag operation originated.
- session:
The drag session that’s beginning.
Discussion
This method is called after it has been determined that a drag will begin and after any lift animations have occurred, but before the position of the drag changes. Use this method to perform any tasks related to the management of the drag session in your app.
Each call to this method is always balanced by a call to the collectionView(_:dragSessionDidEnd:) method.