airbnb / lottie-ios

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

Lottie file works on Web Preview, but not on iOS #2244

Closed yanunsey closed 11 months ago

yanunsey commented 11 months ago

The attached lottie file works on Web Preview, but not on iOS. This can be seen by opening it in the LottieFiles iOS App.

This information is from the LottieFiles App:

Check these before submitting:

What Platform are you on?

What Language are you in?

This issue is a:

Which Version of Lottie are you using?

lottie-ios 4.3.3

Expected Behavior

Animation should appear as it does on Web Preview

Actual Behavior

Animation is not shown

Animation JSON

Button.json

calda commented 11 months ago

This animation renders and animates properly when I test it locally. If you are seeing something different, please share a sample project that demonstrates the problem and reopen this issue. Thanks!

image
calda commented 11 months ago

It's possible this is a bug that was fixed in a recent version of Lottie, since 4.3.1 is not the most up-to-date version.

yanunsey commented 11 months ago

Thanks for the reply.

I see what you mean, but this animation doesn't render and doesn't animate on the iOS platform. Is it possible that the issue persists on iOS platforms?

I am testing with the lottie-ios CocoaPods installation version 4.3.3 in my own project, and I can't see it working. I can run other JSON files properly, but not this one.

The version 4.3.1 is returned by the LottieFiles current app downloaded from the App Store.

Thanks!

calda commented 11 months ago

Perhaps this was an issue fixed on master but not fixed in 4.3.3. We released 4.3.4 yesterday, maybe give that a try.

yanunsey commented 11 months ago

Yes, it works properly in 4.3.4. Thank you so much!