JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.01k stars 1.17k forks source link

Support loading Lottie animations #362

Closed igordmn closed 1 week ago

igordmn commented 3 years ago

Skia already supports Lottie animations: https://skia.org/user/modules/skottie

We can implement Composable's to load and show these animations.

igordmn commented 3 years ago

Support for GIF animations: https://github.com/JetBrains/compose-jb/issues/153

SebastianAigner commented 3 years ago

NB, the folks from Airbnb are also designing a Compose API for Lottie animations on Android: https://github.com/airbnb/lottie/blob/master/android-compose.md

sureshg commented 3 years ago

@SebastianAigner Lottie compose doesn't have plan to support CFD as it's using Android Canvas under the hood - https://twitter.com/gpeal8/status/1378443883890180097

YektaDev commented 1 year ago

Since it's been 2 years, I wonder if there are any plans for this feature any time soon?

wwalkingg commented 1 year ago

Lottie is important in client!

jflavio11 commented 1 year ago

Hello guys, is there any update on this topic?

I'm not pretty sure where to find a kind of roadmap for supporting Lottie in Compose Multiplatform in Mobile

MatkovIvan commented 1 year ago

Currently you can use skia API directly (org.jetbrains.skia.*). Please note that it's part of skiko library with no public API stability guarantees for now.

There is an internal demo with some issue and existing workaround:

Reading time reference inside drawIntoCanvas block solves the issue.

Also almost a year ago we saw successful usage of it in our Slack.

This topic is intended to track adding support in compose library itself

gulabsagevadiya commented 8 months ago

is there any update about lottie support?

StarsEnd33A2D17 commented 7 months ago

is there any update about lottie support?

You might want to try out this project: Kottie.

okushnikov commented 1 month ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.