Xamarin.Forms.Plugins icon indicating copy to clipboard operation
Xamarin.Forms.Plugins copied to clipboard

What version of SVG does this library support ?

Open mannyvw opened this issue 9 years ago • 1 comments

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 so removed that, now it complains about , mmmm there wont be much left soon.

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

mannyvw avatar Nov 07 '16 09:11 mannyvw

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.

See my own solution.

toverux avatar Nov 22 '16 22:11 toverux