CollectionKit icon indicating copy to clipboard operation
CollectionKit copied to clipboard

How can i get selected item

Open abdallahnh opened this issue 7 years ago • 1 comments

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.

abdallahnh avatar Dec 13 '18 18:12 abdallahnh

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.

lkzhao avatar Dec 13 '18 22:12 lkzhao