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 have an animation that renders as expected in Lottie 4.0.1 with renderingEngine set to .automatic, but triggers an assertion as soon as I call setValueProvider with an instance of GradientValueProvider:
Lottie/ValueProviderStore.swift:22: Assertion failed: The Core Animation rendering engine doesn't support Value Providers that vend a closure, because that would require calling the closure on the main thread once per frame.
I can work around this by setting renderingEngine set to .mainThread, but as I understand .automatic option should be backward-compatible with 3.x. Of course ideally I'd like to use the Core Animation engine.
Thanks for the report. This is currently unimplemented for the Core Animation rendering engine, but should be feasible to support. PRs are welcome if anyone in the community is interested in helping out!
In the meantime, continuing to use the main thread rendering engine for this use case is the best workaround.
Lottie 4.0.1
I have an animation that renders as expected in Lottie 4.0.1 with
renderingEngine
set to.automatic
, but triggers an assertion as soon as I callsetValueProvider
with an instance ofGradientValueProvider
:I can work around this by setting
renderingEngine
set to.mainThread
, but as I understand.automatic
option should be backward-compatible with 3.x. Of course ideally I'd like to use the Core Animation engine.The animation file:
The call:
The text was updated successfully, but these errors were encountered: