CollectionKit
CollectionKit copied to clipboard
How can i get selected item
Hi All,
I UICollectionView we can detect selected item and we can do multi select so how can we do this with this library
thanks.
Not supported out of the box at the moment. don't want to overload too many features into CollectionView. But it is very easy to build this feature in your project with CollectionKit. Just keep a selected sets in your view controller. then assign a tapHandler and update that selected sets. Every time the selected sets changes, call collectionView.setNeedsReload(). Finally in the viewUpdater function, update your views to indicate selected/unselected state.