Reputation: 643
I have multiple collection views on one screen
In collectionView One i have normal cell like Square In collectionView two i have group cell e.g same cell but multiple surrounded by a border of Group
I need to Enable Drag and Drop between One Collection View to Another.
I am using swift 3.0.
Upvotes: 9
Views: 4846
Reputation: 19602
Drag from collectionView2:
cell.isHidden = yes
. This way the cell is not visible, but its empty space remains.Drag to collectionView1:
When the drag-able cell is above collectionView1 and is dropped:
isHidden = false
Upvotes: 2
Reputation: 545
You can use this one from GitHub:
https://github.com/mmick66/KDDragAndDropCollectionView
And here is a nice guide for it:
http://blog.karmadust.com/drag-and-drop-between-uicollectionviews/
Upvotes: 5