Yalantis / Koloda

KolodaView is a class designed to simplify the implementation of Tinder like cards on iOS.
https://yalantis.com
MIT License
5.37k stars 805 forks source link

Implement ability to swipe in any direction #118

Closed numen31337 closed 8 years ago

numen31337 commented 8 years ago

Current implementation allow you to swipe only left/right. For some applications would be helpful to define kinda bit-mask with all directions you are interested in. For example in Tinted app I might be interested to swipe down to instantly start chat or whatever.

johncederholm commented 8 years ago

So this is my first time on github, but I modified the koloda files to include a .Up and .Down direction. You can customize what x and y numbers constitute a .Up or .Down (or .Left or .Right direction for that matter). Please let me know if you want them/how I can share them with you.

matt-lebl commented 8 years ago

@johncederholm You might find this article helpful, scroll down to where it says "Pull Request"

felix-dumit commented 8 years ago

I have implemented this over the past couple of days. It's here https://github.com/felix-dumit/Koloda/tree/multiple-direction-support

I will add some more comments and then make a PR soon

matt-lebl commented 8 years ago

@felix-dumit Exciting!

johncederholm commented 8 years ago

Thanks @blerchy , but it seems I have been beaten to the punch...

Lxrd-AJ commented 8 years ago

@felix-dumit Awesome stuff! When can you make the PR?