SVG viewbox is off
Please check the attachment. Every so often my Android developers tell me an SVG (that I exported from XD) does not work in Android Studio.
After a lot of trial and error I found that the exported SVG's that do not work have something in common. The with/height (viewbox) is not a round number.
I haven't been able to figure out how or why, as this doesn't happen to every icon I export with XD. But below you can see an example of an icon which has the right dimensions in XD, but upon inspecting the generated SVG, the viewbox is not 24 but 24.002.
Hopefully this can be addressed.
Daniel Blom commented
How is this marked as "NOT-A-BUG-FEATURE-REQUEST" ? Please give me some info about this.
AdminAsha B C (Software Engineer, Adobe) commented
Thank you for reaching us. Can you comment or vote at https://adobexd.uservoice.com/forums/353007-adobe-xd-feature-requests/suggestions/33554494-import-svg-with-preserved-viewbox-boundary