Replies: 3 comments 3 replies
-
|
Have you tried this same code but using the main thread rendering engine instead? |
Beta Was this translation helpful? Give feedback.
-
|
Yes, and that works. I would like to know what the way of doing this is when using the other rendering engine now. What I do right now is load the animation in a view that uses the main thread engine, extract the data I need, throw everything away and then use the animation in the optimized rendering engine, but that seems a bit ridiculous? |
Beta Was this translation helpful? Give feedback.
-
|
Another issue is the complete lack of documentation when it comes to introspecting animations. I found info on how to modify values using valueproviders, but how to read/introspect a Lottie animation file isn't documented anywhere. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been looking around everywhere and it seems not to be documented in the official Lottie docs, and through Google I find plenty of out of date info.
The issue is the following: I have a Lottie animation that's supposed to cover a big part of my screen, containing a shape layer named "Shape Layer 11". I want to use that layer's (relative) position to position it on a certain point on my screen. I checked with the Lottie Editor and can see the values I want, I can even see them in Xcode when introspecting the animation object.
If I know the original bounding box of the animation, and the position in that box of the layer, I know how to exactly position the layer so it's on the right position on screen using relative positioning.
The information I found talked about using a
LottieAnimationViewand using:But I just discovered this is no longer supported in the new rendering engine.
How do we introspect a Lottie animation file? There is no info about this in the documentation.
These are the values I want to access:
Beta Was this translation helpful? Give feedback.
All reactions