← flaviocopes.com

Swift: How to use SF Symbols

Published Oct 06 2021

When designing a TabView you have the option to add an icon for each tab using a system image, using the systemImage parameter to Label:

TabView {
    Text("First")
        .tabItem {
            Label("First", systemImage: "tray")
        }
}

In this case we use tray.

How do you find out which other icons you can use?

Apple created an app for this, called SF Symbols. Download it from https://developer.apple.com/design/downloads/SF-Symbols.dmg, install it on your Mac and once you open it, you can browse over 1500 symbols and see their name:



Wanna go from noobie to expert?

I wrote an entire book on this topic 👇

© 2023 Flavio Copes Flavio Copes using Notion to Site Notion to Site. Follow on Twitter

Solopreneur? Wannabe? Adventure awaits