Display an animated gif in jetpack compose #1051
-
ANSWERED: Turns out this is the code you need to display an animated Gif. You just have to put it in the right place -- which I was not doing. Original Question: I know the coil library can display an an animated gif, the (non-jetpack-compose) sample app shows them beautifully. I just can't figure out from the doc how to do it using Jetpack Compose. I have the following setup:
The gif shows up just fine, but it never animates. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The code above is the correct code to display an animated GIF. OP (me) had it in the wrong place in the app. |
Beta Was this translation helpful? Give feedback.
-
coil3.gif.GifDecoder class has android imports so it cant be used in KMP commonMain |
Beta Was this translation helpful? Give feedback.
The code above is the correct code to display an animated GIF. OP (me) had it in the wrong place in the app.