如何在iOS 12及以下版本中使用SF符号? [英] How to use SF Symbols in iOS 12 and below?

查看:169
本文介绍了如何在iOS 12及以下版本中使用SF符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在更新我的应用程序中的图标.听说Apple在iOS 13上发布了名为SF Symbols的图标字体后,我想知道我是否只能在iOS 13中使用它们,或者是否也可以在较低版本的iOS中使用它们.

I am updating the icons in my app. After I heard Apple released an icon font named SF Symbols with iOS 13, I was wondering if I can only use them in iOS 13 or if it is possible to use them in lower versions of iOS too.

如果要使用它们,是否必须对旧版本实施后备?

If I want to use them, do I have to implement a fallback for older versions?

推荐答案

您不能在iOS 13之前的iOS版本中本地使用SFSymbols(请参阅Apple的

You can not use SFSymbols natively in iOS versions older than iOS 13 (see Apple's Human Interface Guidelines for SF Symbols).

但是,如果您对使用图形感兴趣,可以使用 SFSymbols应用导出图标的SVG版本.然后使用一些图形工具将它们转换为PNG图标,您可以将其导入到资产目录中.

However, if you are interested in using the graphics you can use the SFSymbols app to export SVG versions of the icon. Then use some graphics tool to convert them to PNG icons you can import into your asset catalog.

这篇关于如何在iOS 12及以下版本中使用SF符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆