Hi everyone .. i got a feature that makes me have to work with SVG and manipulate it on mobile platform (Android/IOS) ..
My current approach is Load the SVG on HTML then modify it via DOM Manipulation then loaded it via WebView ..
However .. working with JS is a nightmare for me ..
Since my project is already multiplatform .. is there a way maybe to work the SVG with Kotlin/JS then somehow load it on the mobile side ?
j
Jacob Ras
01/13/2024, 12:17 AM
"manipulate" how? Scaling? Drawing? Converting?
a
Angga Ardinata
01/13/2024, 12:41 AM
like changing the color of some path and hide and show some part of the svg
c
Casey Brooks
01/13/2024, 12:54 AM
SVGe are just XML, so you should be able to parse the XML using each platform's native XML paraers and modify the SVG dom there, rather than using JS