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

how to switch animation? #287

Closed
WZBbiao opened this issue Jun 30, 2017 · 5 comments
Closed

how to switch animation? #287

WZBbiao opened this issue Jun 30, 2017 · 5 comments

Comments

@WZBbiao
Copy link

WZBbiao commented Jun 30, 2017

I show animation in UICollectionViewCell, Every animation is different, In order to avoid cell's recycling, I need to load animation again when the cell every time load. So I try to destroy Lottie and recreate, But It cause interface caton very much when rolling. So what should I do?

@bellchen
Copy link
Contributor

I think you should not destroy&recreate LottieView, cache lottieView and pause&play when your cell hidden&show

@WZBbiao
Copy link
Author

WZBbiao commented Jun 30, 2017

Thanks, I will try it.

@buba447
Copy link
Collaborator

buba447 commented Jun 30, 2017

We are working to add support for setting animation after initializing a LOTAnimationView

@buba447
Copy link
Collaborator

buba447 commented Aug 4, 2017

Closing as we are tracking the issue here #344

@buba447 buba447 closed this as completed Aug 4, 2017
@buba447
Copy link
Collaborator

buba447 commented Aug 4, 2017

Added here! #347

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

No branches or pull requests

3 participants