airbnb / lottie-ios

An iOS library to natively render After Effects vector animations
http://airbnb.io/lottie/
Apache License 2.0
25.48k stars 3.71k forks source link

Animation differs between using .coreAnimation and .mainThread as the rendering engine. #1992

Open mingso opened 1 year ago

mingso commented 1 year ago

Which Version of Lottie are you using?

Lottie 4.0.1 ~ 4.1.3

Expected Behavior

https://user-images.githubusercontent.com/37893327/224323916-2e7df895-ba98-4c6c-ada8-bbf9abb82294.mp4

Actual Behavior

https://user-images.githubusercontent.com/37893327/224323928-4c907d86-775f-44fb-99e0-b4f2021964cf.mp4

Animation JSON

background.json.zip


When setting the rendering engine to .mainThread, it operates normally, but an error occurs when setting it to .coreAnimation.

It seems that this issue may be related to this section, as changing the "h" value to 0 in lines 71, 118, and 174, ... of the background.json file results in normal operation. (However, it may not be related to that section because I don't know what each property means.)

Thank you.

InfiniteFalltrough commented 4 months ago

Lottie 4.4.1 - same issue