Use Coil3 in Compose with SVG #2527
Answered
by
colinrtwhite
StefanOltmann
asked this question in
Q&A
-
I don't understand how Coil3 is supposed to be used for SVGs. My goal is to display a SVG on Desktop & WASM. I added these dependencies to
I set the SVG factory in my
But this displays always a black screen:
I also found for Coil2 this:
But there is no What's the correct way to display SVGs (from a String) using Coil? |
Beta Was this translation helpful? Give feedback.
Answered by
colinrtwhite
Oct 8, 2024
Replies: 1 comment
-
You should be able to pass a raw SVG as a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
StefanOltmann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to pass a raw SVG as a
ByteArray
:model = mySvgString.toByteArray()
.