Find all available images for as `systemName` in SFSymbols

后端 未结 6 1076
情歌与酒
情歌与酒 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条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 20:05

    Assuming you have Xcode installed, you can also preview all the images without needing to download a separate app.

    The trick is you need to view them in a Storyboard, not a SwiftUI Canvas.

    Add a UIImageView to your storyboard, then press the dropdown arrow near Image. You'll see the entire list of images provided by Apple:

    Copy the name of an image, and then use it just like other answers mention above:

    Image(systemName: "square.and.arrow.up")
    

提交回复
热议问题