I have a pretty standard UICollectionView with drag and drop in iOS that is working as intended. After converting to a Mac app using Mac Catalyst, however, the very first time a dragged item is dropped on itself (let's call it at indexPath X), performDropWith is not called, and following happens:
1) UIDragSession seems to be frozen, such that any new drag session will have the destination indexPath fixed to X
2) UIDragSession is not recreated for next drags, and you can check it by looking at the memory address of the session
This behavior is only seen on the Mac Catalyst version of the app and the iOS app properly deallocates the drag session and creates a new one regardless of the drop location of the item.
I'm using Xcode version 12.0 and swift version 5.0
Thanks,
Behrang
1) UIDragSession seems to be frozen, such that any new drag session will have the destination indexPath fixed to X
2) UIDragSession is not recreated for next drags, and you can check it by looking at the memory address of the session
This behavior is only seen on the Mac Catalyst version of the app and the iOS app properly deallocates the drag session and creates a new one regardless of the drop location of the item.
I'm using Xcode version 12.0 and swift version 5.0
Thanks,
Behrang