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
-
Which Version of Lottie are you using?
Lottie 4.4.3
Expected Behavior
I'd like something like
compatibleAnimationView.loadingError
or at leastcompatibleAnimationView.isAnimationLoaded
to check for failures.Actual Behavior
I'm initializing
CompatibleAnimationView
as 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
AnimationView
orLottieAnimation
.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
AnimationView
works without any issues.Beta Was this translation helpful? Give feedback.
All reactions