有没有办法在macOS SwiftUI开发中使用旧金山符号? [英] Is there a way to use San Francisco symbols on macOS SwiftUI development?

查看:63
本文介绍了有没有办法在macOS SwiftUI开发中使用旧金山符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅问题标题.据我所知,在macOS项目上尝试使用NSImage(systemName: String)语法时,它不支持.具体来说,我试图在工具栏项上使用它.

Please see the question title. As far as I can see, it does not support NSImage(systemName: String) syntax when trying to use it on a macOS project. To be specific, I was trying to use it on a toolbar item.

推荐答案

macOS尚不支持SF Symbols(尚未)

SF Symbols is not supported on macOS (yet)

但是您可以下载 SF Symbols App 并导出符号您需要作为独立图像.

But you can download the SF Symbols App and export the symbols you need as stand-alone images.

这篇关于有没有办法在macOS SwiftUI开发中使用旧金山符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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