Created
November 16, 2017 10:30
-
-
Save icanswiftabit/88cf5deb4e076b80ab46031316111fda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func collectionView(_ collectionView: UICollectionView, dropSessionDidUpdate session: UIDropSession, withDestinationIndexPath destinationIndexPath: IndexPath?) -> UICollectionViewDropProposal { | |
let operation: UIDropOperation = session.localDragSession == nil ? .copy : .move | |
let intent = UICollectionViewDropIntent.insertAtDestinationIndexPath | |
let dropProposal = UICollectionViewDropProposal(operation: operation, intent: intent) | |
return dropProposal | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment