在SFSymbols中找到所有可用的图像作为"systemName" [英] Find all available images for as `systemName` in SFSymbols

查看:541
本文介绍了在SFSymbols中找到所有可用的图像作为"systemName"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到SFSymbol中可用的所有系统映像?例如在SwiftUI Image初始化程序Image(systemName:)中?

Where can I find all the system images that are available in the SFSymbols? for example in the SwiftUI Image initializer Image(systemName:)?

到目前为止,我只使用过"chevron""star.fill",正如在Apple的SwiftUI教程系列中所发现的那样.但是,我在任何官方文档中都找不到完整的图标列表.

I've only been using "chevron" and "star.fill" so far, as discovered in Apple's SwiftUI tutorial series. However, I haven't been able to find a full list of icons in any official documentation.

推荐答案

这些图标称为 SF符号.您可以在 iOS 13 和更高版本, macOS 11 和更高版本, watchOS 6 和更高版本以及 tvOS中使用超过2,400个符号13 及更高版本.您可以在任何可以使用图像的地方使用符号.

These icons are called SF Symbols. There are over 2,400 symbols you can use in iOS 13 and later, macOS 11 and later, watchOS 6 and later, and tvOS 13 and later. You can use a symbol everywhere you can use an image.

要浏览完整的符号集,请下载SF Symbols应用程序.有关SF符号的更多信息,请在此处.

To browse the full set of symbols, download the SF Symbols app. For more info about SF Symbols check here.

SF Symbols 2 引入了750多个新符号,其中包括:

SF Symbols 2 introduces over 750 new symbols and includes:

  • 超过150种预先配置的多色符号,可自动适应鲜艳度,辅助功能设置和外观模式
  • 标准符号和自定义符号中的负边距,为您提供 更好地控制水平对齐方式
  • 从右到左书写系统的本地化符号变体 作为阿拉伯语,梵文和希伯来语的脚本专用符号
  • Over 150 preconfigured, multicolor symbols that automatically adapt to vibrancy, accessibility settings, and appearance modes
  • Negative side margins in both standard and custom symbols, giving you greater control over horizontal alignment
  • Localized symbol variants for right-to-left writing systems, as well as script-specific symbols for Arabic, Devanagari, and Hebrew

用法

UIKit:

let heartImage = UIImage(systemName: "heart.fill")

SwiftUI:

let heartImage = Image(systemName: "heart.fill")

这篇关于在SFSymbols中找到所有可用的图像作为"systemName"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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