has anyone been able to implement a Gif renderer o...
# compose-ios
b
has anyone been able to implement a Gif renderer on iOS?
z
Coil supports gifs in general, and the 3.0 alphas have multiplatform support (but they're obviously early). I haven't tried these two things together yet, but I assume they'd work.
thank you color 1
b
GIFs are Android only in 3 atm
z
Ah, I found the docs about that now, good to know. Unfortunately I don't know of an alternative.
b
Was able to get it to work - no cocoapod or 3rd party dependency 🙂 just need to figure out how to map contentMode's
🎉 4
Copy code
val gifView = remember(url) {
        UIImageView().apply {
            launch {
                image = UIImage.gifImageWithURL(url)
            }
        }
    }
d
Good solution!
j
Nice! 🙂 WOuld love see a PR for Coil and/or Kamel supporting this 🙂
1
b
Thanks! 🙏 @Dima Avdeev
@Joel Denke maybe when I get my head out of the weeds on this project :)
l
Kamel should have support for gifs on the next release: https://github.com/Kamel-Media/Kamel/issues/12#issuecomment-1997137959
👍 1
released in v1.0.0-beta.5
b
For iOS too?
l
Yup everything @brandonmcansh
b
Nice
👌 1