Vapolia.XamSvg.Forms
3.2.1-pre2
Please replace this package with the new one
dotnet add package Vapolia.XamSvg.Forms --version 3.2.1-pre2
NuGet\Install-Package Vapolia.XamSvg.Forms -Version 3.2.1-pre2
<PackageReference Include="Vapolia.XamSvg.Forms" Version="3.2.1-pre2" />
paket add Vapolia.XamSvg.Forms --version 3.2.1-pre2
#r "nuget: Vapolia.XamSvg.Forms, 3.2.1-pre2"
// Install Vapolia.XamSvg.Forms as a Cake Addin
#addin nuget:?package=Vapolia.XamSvg.Forms&version=3.2.1-pre2&prerelease
// Install Vapolia.XamSvg.Forms as a Cake Tool
#tool nuget:?package=Vapolia.XamSvg.Forms&version=3.2.1-pre2&prerelease
Add SVG images to Xamarin Forms apps. It's a Full .NET native implementation (not a binding and has no dependency).
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. monoandroid90 is compatible. monoandroid10.0 is compatible. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap10.0.17763 is compatible. |
Xamarin.iOS | xamarinios was computed. xamarinios10 is compatible. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Xamarin.Forms (>= 4.5.0.356)
-
MonoAndroid 10.0
- Xamarin.Forms (>= 4.5.0.356)
-
MonoAndroid 9.0
- Xamarin.Forms (>= 4.5.0.356)
-
UAP 10.0.17763
- Xamarin.Forms (>= 4.5.0.356)
-
Xamarin.iOS 1.0
- Xamarin.Forms (>= 4.5.0.356)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
3.2.0
Fix an issue in iOS where XamSvg will trigger an infinite loop when both width and height are contrained to non zero values, and the name of the svg is null/empty.
It resulted in an infinite refresh loop which makes the app immediatly seems unresponsive.
3.1.9
Upgrade to Xamarin Forms 4.5
Upgrade to a multi targeting project
3.1.8
UWP version includes the xr.xml file
3.1.7
Upgrade to Xamarin Forms 4.4
3.1.6
fix regression in 3.1.5 with arcs + unit test
Upgrade to Xamarin Forms 4.2
3.1.5
Supports new optimized SVG not respecting spec
3.1.4
Update Xamarin Forms
Use latest compiler
3.1.1
ios: fix small pixellization (MainScale not used)
ios: fix AlignmentMode property not working as expected when svg bounds don't start at (0,0)
3.0.1
android: fix scaling proportions for sdk23+
ios: fix scaling of DrawUri
Requires Xamarin Forms 3.4
fix netstandard versions
android: fix selected/pressed/disabled state making svg invisible in certain cases
3.0.0
Requires Xamarin Forms 3.0 + netstandard2/uwp fall update
ios: fix image heights
2.5.2
droid: XamSvg now requires Android min API 17 instead of 14.
ios: fix crash on bind to null
2.5.1
droid: fix ContentDescription/AutomationId missing (bug in Forms's fast renderers ?)
2.5.0
droid: fix rare ObjectDisposedException on Android
2.4.9
ios: fix a nasty issue when svg is used in listviews (crash on ios 8.3).
Also ListView performance will be largely increased on all ios versions.
2.4.8
ios: fix crash on dispose when used in xam forms
2.4.7
android: rebuilt as compilation failed to include resources
2.4.6
ios: fix svg not updating when a BundleString is set again
2.4.0-pre5
android: fix resource search when one resource file name contains another
2.4.0-pre4
android: fix "requestLayout() improperly called during layout" warnings
2.4.0-pre3
use Xamarin Forms 2.4.0
android: fix svg not refreshed all the time after being updated
2.3.5-pre1
use Xamarin Forms 2.3.5
win rt 8.1 / win phone 8.1: retired
ios/android: new IsLoadAsync flag which can be set to false
all: new ViewportTransform property, which enables scenario like zooming and panning while keeping perfect rendering quality. The property type a matrix which transforms the "viewport" property of the svg itself.
all: removed SvgButton. Use Button instead with the new SvgImageSource as the Image.
ios/android: supports SVG everywhere an ImageSource or FileImageSource is accepted !
2.3.4.7
android: fix crash in async call when svg is still loading and view is disposed
2.3.4.5
ios/android: one async call was not cancelled when UISvgImageView/SvgImageView is disposed
2.3.4.3
Updated xamforms
Fixed SvgImageSource.Create making standard Forms Image crash if not used immedialty (ie in a table cell built by hand).
2.3.4.2
Wp81 breaking change: uri replaced by strings
2.3.4
updated xamforms to 2.3.4
2.3.3.6-pre2
droid: no more blurred svg (removed hardware accel) on android 6+
droid: preview svg in xamarin designer (alpha)
2.3.3.6-pre1
uwp: support for SvgImageBuilder
2.3.3.5
uwp: breaking change: Source is now a string to overtake the Uri string length limitation
uwp: missing new System.Console nuget dependency
2.3.3.4
all versions: fix crash when the ILogger dependency service is not registered
2.3.3.3
update xamforms
uwp: add guards against unknown values crashing ScaleTransform ScaleX setter for a customer (unreproductible)
uwp: finished adding logs. Add XamSvg.Shared.Config.NativeLogger.TraceEnabled=true to activate solution wide Svg logging
2.3.3.2
update xamforms / update compiler / no change
2.3.3.1
uwp: fix svg not appearing (missing uwp10 dependency)
uwp: full internal logging is now available. Assign Config.Logger to log xamsvg internal operations and exceptions.
2.3.2.7
css: fix parsing of exponential values (8.00e-2)
fix "opacity" attribute not working as expected
2.3.2.6
add a check to verify that the custom renderer is correctly registered. If this validation fails, an exception is thrown. Previously no svg would render.
2.3.2.5
new stable forms lib
logging architecture
all(ios,android,wp,win10): fix smooth quadratic curves
all: fix rotation transform with non 0 center point
all: added support for % in rect tag
all: fix elliptic arcs
uwp/wp81: fix partial figure drawings
uwp/wp81: fix binding support with colorMappingSelected
droid: fixed speed related to warning message on android api below 23
2.3.2.4
compatibility with .net standard 1.1
2.3.2.3
forms: new TraceEnabled propery
forms: if an error occurs in svg decoding, traces are logged
all platforms: ILogger interface with default implementation for ios/android
ios: fix IsSelected property not persisting / initializing correctly
2.3.2.2
android: fix SvgFactory.GetDrawable can't find svg embedded resources
android: svg renders fine on api lower 23 if canvas is hardware accelerated. Previously the canvas should never be hardware accelerated on api lower than 23. Note: this is inefficient, disable hw on canvas is much better.
android forms: fix Command/ClickedCommand seems not to work
2.3.2.1
android: fix loading of 'string:' svg
2.3.2
forms: updated to Xamarin.Forms 2.3.2
android: Svg, ColorMapping, ColorMappingSelected properties are now bindable
android: loading is now much faster, using an async worker thread. Can be disabled by adding local:loadAsync='false' to SvgImageView.
android: memory footprint is much lower, caching in bitmaps have been removed. SvgBitmapDrawable has been replaced with the new SvgPictureDrawable. Views displaying this drawable must not be hardware accelerated if API is lower than 23. Use SetLayerType(LayerType.Software, null); on your view if required.
android: detailed logging can be enabled by adding in the layout xml local:traceEnabled="true"
ios: new property ShouldClearImageWhenUpdating (default true). When false, images are not cleared when a bindable property is changed, and before svg is reloaded in background.
ios: fix linear and radial gradients mirror/repeat modes
all: fix object opacity
all: fix bug loading resources from multiple sources
all: improve a lot css parsing speed and memory footprint it uses. Css parsing is still a slow operation. Avoid using CSS 'styles' in your svg.
2.3.1.114-beta2
android: speed up path parsing, better async loading
android: fix invalidation bug introduced in beta1 with async loading
android: when local:traceEnabled="true", display the svgId inside the rendered svg
2.3.1.114
android: ColorMapping and ColorMappingSelected are now bindable.
android: loading is now much faster, using an async worker thread. Can be disabled by adding local:loadAsync='false' to SvgImageView.
android: memory footprint is much lower, caching in bitmaps have been removed. SvgBitmapDrawable has been replaced with the new SvgPictureDrawable. Views displaying this drawable must not be hardware accelerated if API lower than 23. Use SetLayerType(LayerType.Software, null); on your view if required.
android: loggin can be enabled by adding in the layout xml local:traceEnabled="true"
android: Svg, ColorMapping, ColorMappingSelected properties are now bindable
uw/wp81: Fix specific unexpected behaviors
2.3.0.8 Fix crash in Universal Windows when svg is used in lists. Built with Xamarin stable.
2.3.0.7 Definetly fix a specific case of elliptical arcs on ios. Built with Xamarin beta channel.
2.3.0.5 Updated XamForms to 2.3.0.107. Fix relative elliptical arcs on ios.
2.3.0.4 fix regression with bad colors on ios. Fix reported bug when mode=Fill.
2.3.0.3 fix short html color decoding, ios: complete elliptical arc drawing
2.3.0.1 Fix crash in tap on svg on all platforms, if no click command is assigned to the SvgImage.
2.3.0 Updated XamForms to 2.3.0.49.
2.1.1 fix sync image loading on iOS. Supports rgba in colors and mappings.
2.0.33 New XamSvg versions for Universal Windows and Xamarin Forms for Universal Windows
2.0.32 new ResourceAssemblies if you have more than one assemblies with svg
2.0.31 iOS fix svg not appearing on xamarin beta channel
2.0.26 iOS fix crash on binding of Bundle property (caused by additional debug information)
2.0.25 iOS fix for incorrect color displayed.
2.0.24 No change
2.0.23 Update XamForms to 2.1.0.6529.
2.0.22 Update XamForms to 2.1.0.6526. Using a string: in the Svg property in xamforms for ios now works as expected.
2.0.17 add parameter to select between synchronous or asynchronous loading
2.0.16 expose loading task of UISvgImageView, so you can wait for the svg to be loaded. Useful for google maps custom markers.
2.0.15 the svg would disappear or garbage would be rendered if the svgimage control is in a cell of a list
2.0.14 rebuilt with stable channel
2.0.12 rebuilt with beta channel
2.0.11 fix scaling when only one dimension is given, update Xamarin forms to 2.1.0.6524
2.0.9 add support for the string: scheme in wp81, update xamarin forms to latest stable version
2.0.8 fix pcl target in nuget package
2.0.7 fix combination of multiple transform on ios, fix transform parsing
2.0.6 fix parsing of defs, fix parsing of float exponents
2.0.5 ios: the 2.0.3/4 nuget has a missing dependency
2.0.4 forms: fillMode is exposed in SvgImageSource
2.0.2 ilmerge Shaman.ExCSS, until it is not prerelease anymore
2.0.1 fix ios stroke gradient fill regression
2.0.0
fix nuget dependancies
upgrade Forms 2.0.0
old notes:
wp relative linear gradients, transform and matrixes are now working as expected
simplified codes again
windows phone working again
fix some gradients appearing in black
fix regression when root width/height is in percent
fix android gradients
fix android float overflows
simplified lots of codes
updated to Xamarin Forms 1.5.1.6447
updated android libraries
updated xamarin compiler
all: svg parsing: supports style in all tags
fix crash on ios7.1 with new Xamarin Compiler
all: support named colors
ios: now supports all spreadMethods in gradient fill (repeat/mirror)
ios: changing ColorMapping or ColorMappingSelected using a binding now works as expected
android: new SvgFactory.GetDrawable accepting res: and string: schemes (centralized)
android: all SvgImageView constructors now understands res: and string: schemes
android: SvgImageView correctly uses bounds offset to draw itself
android: new SvgImageView.ForcedSize to force IntrisicWidth/Height to return the ForcedSize instead of the svg native size
ios: now support gradient strokes
android: svg in toolbars as FileImageSource now works correctly
fix crash if Svg property is bound using Binding syntax
fix crash if colormapping or colormappingselected is bound using Binding syntax
new IsSelectionEnabled property for Android. When false, svg can not be selected (but can still be highlighted by presses)
new ClickedCommandParameter bindable property
new IsSelected property, when true it forces the use of the SelectedColorMapping.
Updated for Xamarin Forms 1.4.4 stable
Fix sizing bug when element is hidden then unhidden
new string: scheme to load an svg from a string
new property IsHighlightEnabled (default true). Set to false to disable use of colorMappingSelected when item is highlighted.
ios: fix svg line not appearing
last update broke the size when a svg is in a stacklayout. fixed.
when in a Grid, the svg seemed pixellized. This is fixed.
SvgImageSource.Image to display icons on toolbar items now correctly takes retina display scale
new feature, xamsvg can now be used to display "icons" in menuitems quite easily!
multiple color mappings now works also on iOS
Updated for Xamarin Forms 1.4.3 stable
ClickedCommand is now firing clicks (seems a Xamarin Forms v1.4.3 change)
IsEnabled and InputTransparent, when set to false, both disable click command and event
Ios ellipses are now drawn at the correct place
The Click event and ClickCommand command works again on SVG for Xamarin.Forms Android.
Updated to Xamarin.Forms 1.4.3.6358-pre2.
Image ratio is now correct in all modes for Xamarin Forms (iOS and Android).
Fix memory not immediatly disposed in Xamarin Forms Android when the svg image is updated on the same svg object.
Ios now supports elliptical arcs with identical radius