-
Hi there! I'm enjoying lottie-ios! So my question is, what are the risks of using the coreAnimation engine with Assert suppressed? Thank you for your reading🙏. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The Core Animation rendering engine emits assertions if it detects that it is unable to correctly render an animation. Disabling the assertions just means that you won't be alerted when using an unsupported animation / feature -- it would be up to you to check whether the animation plays correctly or not. imo disabling assertions within a specific Disabling assertions globally in your app (e.g. |
Beta Was this translation helpful? Give feedback.
-
@calda There is still a warning about Thank you for your informative response! |
Beta Was this translation helpful? Give feedback.
The Core Animation rendering engine emits assertions if it detects that it is unable to correctly render an animation. Disabling the assertions just means that you won't be alerted when using an unsupported animation / feature -- it would be up to you to check whether the animation plays correctly or not.
imo disabling assertions within a specific
AnimationView
(e.g.AnimationView(animation: myAnimation, logger: .printToConsole)
) that always displays a specific animation, which you have already verified animates correctly, is very safe and has no real downsides.Disabling assertions globally in your app (e.g.
LottieLogger.shared = .printToConsole
) is a bit more risky if you have a large n…