How to tell if a CompatibleAnimationView had loading errors? #2449
Lancelotbronner
started this conversation in
General
Replies: 0 comments
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.
-
Which Version of Lottie are you using?
Lottie 4.4.3
Expected Behavior
I'd like something like
compatibleAnimationView.loadingErroror at leastcompatibleAnimationView.isAnimationLoadedto check for failures.Actual Behavior
I'm initializing
CompatibleAnimationViewas follows:I need to check whether the animation successfully loaded or not to plug into our existing (legacy) resource management system.
This is an Objective-C++ SwiftPM package which means we can't directly use
AnimationVieworLottieAnimation.Quickly looking at the source code there doesn't seem to be any way to tell if there was an error loading the animation or what the error was.
Animation JSON
Currently all our animations fail to load only when using
CompatibleAnimationView.I get no logs or feedback from the failures.
Loading the same Data using
AnimationViewworks without any issues.Beta Was this translation helpful? Give feedback.
All reactions