You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 or LottieAnimation.
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.
This discussion was converted from issue #2445 on July 17, 2024 16:04.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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