问题
I have icons built as svg or png just as easily.
Also for those people that are using svg, what's the method you are using to display these?
回答1:
Official iOS Dev documentation says "the PNG format is the one most recommended for use in your apps". You can read it for a lot more information here.
although the supported file types table doesn't list .SVG. Apple values user experience. SVG scaling consumes a few more CPU cycles which they don't like. PNG rendering is more efficient than SVG,and there are cases like zoom-in / out scenarios where SVGs would be better though.
if you want to use SVG icons across platforms in Xamarin Forms,you could use the Xamarin.FFImageLoading.Svg.Forms library which allow us to achieve this easily.
the more you could refer to SVG icons with FFImageLoading
来源:https://stackoverflow.com/questions/58903483/i-would-like-to-use-simple-icons-such-as-those-used-on-the-left-hand-side-of-set