SwipeSelectingCollectionView icon indicating copy to clipboard operation
SwipeSelectingCollectionView copied to clipboard

How to customisation in project(vertically selection cell)?

Open Karan-ios opened this issue 5 years ago • 1 comments

I already setup swipeselectingcollectionview and working fine but i want to customisation. i want to vertically swipe and select column cell please give me suggestion how to customized in my project .

Karan-ios avatar Jan 20 '20 12:01 Karan-ios

Kapture 2020-01-20 at 9 51 20

If the gif shows what you want, you can simply change the collection view's scroll direction to horizontal. But the cells will be scrolled horizontally instead of vertically.

If you want the collection view's scroll direction to be vertical and also want to select cells vertically, the library isn't capable of that.

https://github.com/ShaneQi/SwipeSelectingCollectionView/blob/master/Sources/SwipeSelectingCollectionView.swift#L63

This is where the library finds out which cell your finger is on. The code below in that method is for calculating the indices between the begin index and end index. You can try to change the logic of calculating indices.

ShaneQi avatar Jan 20 '20 15:01 ShaneQi