Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Parth-1311 opened this issue Aug 5, 2021 · 1 comment
Open

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

Parth-1311 opened this issue Aug 5, 2021 · 1 comment

Comments

@Parth-1311
Copy link

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
Copy link

vzsg commented Aug 9, 2021

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.

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

No branches or pull requests

2 participants