Is there a way to use GIF and SVG images in CMP that work on both Android and iOS?
g
gildor
06/03/2025, 9:48 AM
SVGs are not supported on Android out of the box, so not much you can do (outside of tryint to convert SVGs
gildor
06/03/2025, 9:50 AM
Coil has MPP support and supports Gifs on Android, but not sure that out of the box solution for iOS exists there, but I beleive if it's not supported, it's possible to support
v
Vinod Rai
06/03/2025, 9:59 AM
Can't use coil as it doesn't currently support GIF for IOS
g
gildor
06/03/2025, 10:03 AM
you can use standard iOS mechanics for this, isn't it? Maybe even integrate with coil
d
David Nedrow
06/05/2025, 5:17 PM
You could take a look at moko-resources. I've been experimenting with it and have been able use the same SVG images on both platforms.
g
gildor
06/06/2025, 3:11 AM
It just generated VectorDrawable from SVG, it's easy to do manually, without lib