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

Need to change drag percentage. #441

Closed AmandeepBIT closed 4 years ago

AmandeepBIT commented 4 years ago

If user just drag 20% of the card then card should be dragged. Let me know how its possible........Thanks in advance

seropusha commented 4 years ago

Dear @AmandeepBIT you should implement method func kolodaSwipeThresholdRatioMargin(_ koloda: KolodaView) -> CGFloat? from KolodaViewDelegate and return value 0.0...1.0 it will be target percentage for complete draging of card.

Default value is 1.0 if return 0.2 you achieve needed result. Issue will be closed.