Skip to content

Risks of using .coreAnimation with assert suppressed #1729

Answered by calda
iq3addLi asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by iq3addLi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants