https://kotlinlang.org logo
#compose-web
Title
# compose-web
a

Artur Gniewowski

01/18/2022, 11:05 AM
How to add SVG in compose and change its color by CSS color or fill param?
a

Artur Gniewowski

01/18/2022, 1:11 PM
Is there some parser to parse svg from file to svg element?. Now i can build svg in this way:
Copy code
Svg (viewBox = "0 0 24 24", {
    attr("fill", "currentColor")
}){
    Path(...)
}
u

[JB] Shagen

01/18/2022, 2:12 PM
Artur, we are working on small yet important improvements for svg (like exactly what you’ve encountered - being able to just write fill etc.) as of your second question - no, we don’t have anything out of the box for parsing SVG and were going to rely on generic js solutions in that aspect.
👍 1
14 Views