Hi everyone .. i got a feature that makes me have ...
# multiplatform
a
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
"manipulate" how? Scaling? Drawing? Converting?
a
like changing the color of some path and hide and show some part of the svg
c
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
3