CollectionViewPagingLayout icon indicating copy to clipboard operation
CollectionViewPagingLayout copied to clipboard

Tinder-like interaction

Open renarl opened this issue 4 years ago • 3 comments

Hi,

Is it possible to implement a tinder-like interface with the lib? For example, instead of paging through cards, I want the user to go through cards and swipe them into right and left collections.

renarl avatar Oct 14 '21 07:10 renarl

That could be possible but not straightforward, you may need to hijack some gestures since UICollectionView doesn't let you do that. I'll look into this since it's a popular layout

amirdew avatar Nov 07 '21 12:11 amirdew

That would be great, thanks!

I’m confused about which gestures would need to be hijacked? The stack layout already has swipe left and right and the cards slide out and disappear. The only problem. Is that they can be swiped back in.

renarl avatar Nov 13 '21 19:11 renarl

The collectionview gestures are tight to changing content offset. But in a tinder-like view, we want to move the top card based on the gesture and don't change the content offset until you drop the card to right or left.

amirdew avatar Nov 19 '21 14:11 amirdew