Skip to content

Swift: How to use SF Symbols

New Course Coming Soon:

Get Really Good at Git

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:

Are you intimidated by Git? Can’t figure out merge vs rebase? Are you afraid of screwing up something any time you have to do something in Git? Do you rely on ChatGPT or random people’s answer on StackOverflow to fix your problems? Your coworkers are tired of explaining Git to you all the time? Git is something we all need to use, but few of us really master it. I created this course to improve your Git (and GitHub) knowledge at a radical level. A course that helps you feel less frustrated with Git. Launching Summer 2024. Join the waiting list!
→ Get my Swift Handbook

Here is how can I help you: