Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Tinder-like interaction #56

Open
renarl opened this issue Oct 14, 2021 · 3 comments
Open

Tinder-like interaction #56

renarl opened this issue Oct 14, 2021 · 3 comments

Comments

@renarl
Copy link

renarl commented Oct 14, 2021

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.

@amirdew
Copy link
Owner

amirdew commented Nov 7, 2021

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

@renarl
Copy link
Author

renarl commented Nov 13, 2021

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.

@amirdew
Copy link
Owner

amirdew commented Nov 19, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants