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

The animation is not showing when we swipe the view #474

Open Parth-1311 opened 3 years ago

Parth-1311 commented 3 years ago

I am requesting for urgent solution for this problem and want to know what should I do in the scene.....

How should it look like?

it should look just like it shown in the example.

Report a bug

What did you do?

i wrote code just as the example showed . added pod imported the koloda everything

What did you expect to happen?

The view should have been able to show swiping animation as shown in the example

What happened instead?

the data in the view changes as i swipe but the view doesnt show the swiping animation at all.

Your Environment

Project that demonstrates the bug

Please add a link to a project we can download that reproduces the bug.

TruthOrDare.zip

vzsg commented 3 years ago

Look at the example more carefully, particularly the koloda(_:viewForCardAt:) method.

Instead of creating and storing a single UILabel, you should be creating and returning new views in the delegate method. Right now, you're violating the delegate contract and thus everything breaks down.

Eliminating that "KolodaQueLabel" property would be a good first step.