The 2019 WWDC was a great developer conference that released some awesome updates and new frameworks. Some of my favorites were Vision Text Recognition on macOS, ARKit 3, and SwiftUI. Along with SwiftUI and the new Apple operating systems, Apple introduced SF Symbols.

SF Symbols is a collection of symbols used throughout the new operating systems, there are over 1,500 symbols currently. Every symbol is customizable and acts similar to Text.

SF Symbols macOS App (Beta)

To figure out any name for an SF Symbol, you must first download the macOS app. Go to Apple Design to download the beta app. In the app you can search for the symbol you are looking for.

Magic Strings Solution

Now these symbols are very helpful, but it is difficult having to type a string for over 1,500 different symbols. Frustrated by this I made a simple project SF using SPM (Swift Package Manager). SF is a simple project that contains an enum.

SF contains over 1,500 cases for every SF Symbol, the period was replaced with underscores. The enum has two computed variables, name and image.

Example Usage

SFExplorer is used to test the SF cases. Since the SF enum is CaseIterable, we can loop through all the symbols and see them in a list.

Normal Usage

Having an enum helps with not worrying about if you typed one character wrong. It also lets you store an array of SF vs having an array of Strings.