Yalantis/Koloda

The animation is not showing when we swipe the view

Parth-1311 opened this issue · 1 comments

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

  • Version of the component: insert here
  • Swift version: 5
  • iOS version: 14.4
  • Device: iPhone 11(Simulator)
  • Xcode version: 12
  • If you use Cocoapods: run pod env | pbcopy and insert here
  • If you use Carthage: run carthage version | pbcopy and insert here

Project that demonstrates the bug

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

TruthOrDare.zip

vzsg commented

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.