I am trying to drag only one cell at a time and I have allowed multiple cell selection in CollectionView, when we are trying to drag a single cell but there are multiple cells dragging in iOS 13 API(s) in iOS 14, there UICollectionViewList kind of cells, there it's working fine so is there anything in iOS 13 API(s) so we can disable multiple cells dragging in case of multiple cell selection?
Drag & Drop(Collection View)
I would try the following:
If you have multiple selection, either return an empty array or just a single item.
In UICollectionViewDragDelegate
in
Code Block func collectionView(UICollectionView, itemsForBeginning: UIDragSession, at: IndexPath) -> [UIDragItem]
If you have multiple selection, either return an empty array or just a single item.