Skip to content

jnewc/SystemIcons

Repository files navigation

SystemIcons

SwiftUI allows the loading of SF Symbols, a set of modern, configurable symbols designed by Apple to integrate with their San Fransisco font.

This project generates a swift file containing a single struct, SystemIcon, that provides a static property for each of the 1500+ icons in the collection, allowing them to be accessed easily via Xcode autocomplete.

Screenshot of autocomplete

The project is generated from the symbols JSON file (provided under MIT license) found in the SFSymbols.com repo.

Usage

To use the latest file, simply import the SystemIcon.swift file in the root of this repo.

cp SystemIcon ../MySwiftProject/Sources/MyLibrary/

To build the project and generate the file yourself, run:

swift build && .build/debug/SystemIcons

About

SF Symbols for Xcode autocomplete and SwiftUI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published