Javier
04/28/2021, 5:04 PMIgor Demin
04/28/2021, 5:18 PManimatedVectorResource
is available only for android.
The possible alternative is to use Lottie animations. And load them with Skija.
There is also a snippet that shows how to load Gif animations in Compose.
Lottie animations would have a similar implementation (didn't tried, but maybe this snippet can load Lottie animations too).olonho
04/28/2021, 5:26 PMJavier
04/28/2021, 5:40 PMIgor Demin
04/28/2021, 5:43 PMLottie GitHub repo and Lottie is not supported in Desktop ComposeOfficially by Lottie team there is no support. But there is a support by skia/skija
common composable is planned, hope for both, animated and not animated drawables.Nikolay talks about not animated drawable's, but about generic support of skia codecs. Skia codecs don't support android vector drawables.
Javier
04/28/2021, 6:12 PM