Open NikSrg opened 10 months ago
I have same question as facing the same problem
+1, me too.
A bit unintuitive, but I have found a way to apply a "tint" color by masking your SVG on a color. This is also more performant than setting the fill color to every shape via a loop imperatively.
@Zulqurnain24 @petterobam @NikSrg tagging y'all in case you still looking for a solution.
ZStack {
if let imageData {
tintColor.mask {
SVGView(data: imageData)
}
}
}
Hi. I just started to use
SVGView
. I need to apply a tint to the svg image. How can I?I tried unseccessfully:
Thanks for any advice.