How to supply Lottie Json with the images it uses? #1650
Unanswered
urastogi885
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check these before submitting:
This issue is:
Which Version of Lottie are you using?
What Platform are you on?
What Language are you in?
Issue
I am trying to load an animation that uses a PNG image. I found a probable solution that has worked for
Lottie 3.0+
users. The solution was provided in #167. I have added the solution below.I tried to use this by referring the Migration Guide. Unfortunately, I was unable to find a constructor of
AnimationView
(a.k.a.LOTAnimationView
in2.5.13
) similar to as described in the solution below. Please help me provide the image to my animation so that it can render properly.I was able to this very easily in Android by using the
SetImageAssetsFolder
and the animation loaded as expected. Is there something similar I can do in iOS?Note that Lottie Android version used was
4.1.0
Probable Solution found in #167
Expected Behavior
The animation should make the image used look like it is hovering in air.
Actual Behavior
Since the animation view cannot find the image, I just see an empty screen.
Code Example
I want to tell the animation view here to find/supply the image. How do I do that?
Animation JSON
Unfortunately, I cannot share the json.
Beta Was this translation helpful? Give feedback.
All reactions