DamirsCorner/20220603-xamarin-svg

Cannot get svg from file.

Opened this issue · 1 comments

I like your solution and it works with url, but I try to use with file like resources.

Can you please create an example how to add file svg to the project and then use it? I tried many ways and no success.

Many thanks in advanced.

Alex

I found how to do that.

  1. Create a folder Resources in your main project, not .Droid or .iOS
  2. Make all files as Embedded
  3. your image = SvgImageSource.FromSvgResource("tiger.svg");