Replies: 1 comment 1 reply
-
That seems reasonable to me @ainopara. Could you open a pull request? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I utilize my custom image provider to verify if there are Lottie JSON files that cannot find corresponding images. Additionally, each Lottie animation requires its unique image provider with a specific search path to find the corresponding image.
While attempting to reuse a Lottie animation view to display different Lottie animations, I discovered that changing either the image provider or the animation leads to image reloading. Consequently, the image provider and animation do not match, which triggers my custom image missing alert.
I attempted to resolve this issue by first setting the animation to nil, then changing the image provider, and finally setting the new animation. However, due to LottieAnimationView's animationLayer not being reset to nil after setting animation = nil, the image missing alert is still triggered.
Is it safe to also set animationLayer to nil rather than only remove it from super layer, so that I can avoid the image missing alert triggered unexpectly?
lottie-ios/Sources/Public/Animation/LottieAnimationView.swift
Lines 1100 to 1112 in 43a8c7f
Beta Was this translation helpful? Give feedback.
All reactions