Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 865 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 865 Bytes

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