Xamarin.Forms.Plugins
Xamarin.Forms.Plugins copied to clipboard
What version of SVG does this library support ?
Hi
Hopefully this will be a great library if it can get it to work.
Attempted to load a few sample svg's into forms app created in sketch and it wouldn't load them.
<Desc> tag was first one it complained about, so I removed it, next was
It might help if I knew what version of SVG this library supports, I can't seem to find that anywhere ? Sketch is exporting 1.1
thanks
This library uses NGraphics to parse and render SVGs. It's a neat, although very limited library that does not states clearly what SVG profile it supports.
Since Xamarin.Forms.Plugins is dead (or dying), I would recommend you to write your own renderer and adding a recent version of NGraphics via NuGet. The version bundled with this library is pretty old and I've noticed that upgrading NGraphics fixed some problems (that's why I had to wrote my own renderers). You will still get glitches on some "complex" SVGs and sometimes it won't work at all (but sometimes it's also juste fine !). I recommend you to choose the most basic and oldest SVG profiles and disabling CSS styling.