How to improve Lottie loading performance (load 23 Lotties in a collection stack views) #1630
benjaminsenechal
started this conversation in
General
Replies: 1 comment
-
|
This approach in general looks good to me -- moving animation parsing off of the main thread will help keep the app responsive. I see you're using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I faced a several problem to load a collection of Lottie animations. I explain my code. I have a storyboard which contains 24 views. In my view controller, It's referenced as a collection of IBoutlet with AnimationView as type like this
@IBOutlet var lottieCollectionViews: [AnimationView]!I have to load one Lottie (json of 80ko) per view, so I configured my code like this :
But, I have memory issue (crash) with older iPhone (7 or SE) and it takes around 5/7sec to load. How can I improve the loading?
Thank you so much.
Beta Was this translation helpful? Give feedback.
All reactions