I would like to use simple icons such as those used on the left hand side of Settings in iOS. Any advantage to using svg vs png?

风格不统一 提交于 2021-02-11 08:46:16

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!