Find all available images for as `systemName` in SFSymbols

后端 未结 6 1096
情歌与酒
情歌与酒 2021-01-30 19:38

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

I\'

6条回答
  •  猫巷女王i
    2021-01-30 20:15

    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.

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


    SF Symbols 2 introduces over 750 new symbols and includes:

    • 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

    Usage

    UIKit:

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

    SwiftUI:

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

提交回复
热议问题