A lot of iOS apps make extensive use of collections and tables. Therefore, it makes a lot of sense that, whenever Apple introduces a huge feature such as drag and drop, they take a step back and evaluate how the feature should work for collections or tables. Luckily, drag and drop was no exception and Apple truly put some thought into making drag and drop work great.
In this section, you'll implement drag and drop for the collection of images that is at the bottom of the screen for AugmentedRealityGallery. We will implement the following features using drag and drop for UICollectionView:
- Dragging photos from the collection onto the AR viewport.
- Reordering items in the collection view.
- Adding items ...