Maybe it's been done before; but I just got <https://lottiefiles.com|Lottie Animations> running on b...
d
Maybe it's been done before; but I just got Lottie Animations running on both Compose/iOS and Compose/Desktop, thanks to the Skottie code that exists in the underlying Skia framework. Nice to see, with animation smooth on both platforms! K🎉 Here's the code for a
@Composable
. It's lacking the rich control of the 'full' Lottie Android Composable at the moment, but is usable & demonstrates the capability. I place this code in a
skiaMain
source-set, included in both iOS and Desktop targets.
🙌🏾 1
👍🏻 1
👍🏾 1
🙌🏻 1
K 16
🆒 5
🙌 3
👍 3
a
@thelumiereguy
r
i used this, but animation not running
d
@Ramadhan Purbosejati You may check out the entire page source here
...since this is working as per deployed page here
I may have fixed a bug in the animation routine since posting 🤔
r
thank you!!
r
I place this code in a
skiaMain
source-set
How did you do this @darkmoon_uk?
s
Hi @darkmoon_uk, can you please provide resourceProvider implementation for ios/android also. thanks
d
Hi Shoaib, I'm unlikely to have to time to look at that over the next few days to be honest. Busy time at work. I would suggest discussing this with GPT4, provide the existing expect and actual sources and ask it to write the iOS version... Chances are it'll work 👌
👍 1
s
no problem, thank you.