Maybe it's been done before; but I just got <https...
# compose-ios
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.