In my current Xamarin.Forms project I use FFImageLoader to render my SVGs.
The Problem is that I would like to preload my images to avoid ugly "page building issues", but I don't understand how to realize it.
Current usage:
new SvgCachedImage {
WidthRequest = 200,
HeightRequest = 200,
Source = new SvgImageSource(ImageSource.FromResource("Path.to.image.in.project.svg", 200, 200, true)
}
So what I want to do is loading the SvgImageSource into Cache and then "take" it from there, when needed.
Maybe I'm just to blind to find the solution in the documentation...
Thanks for your help!
ImageService.Instance.LoadEmbeddedResource("Path.to.image.in.project.svg")
.WithCustomDataResolver(new SvgDataResolver(200, 200, true))
.Preload();