jnewc / SystemIcons

SF Symbols for Xcode autocomplete and SwiftUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Swift 99.6%Language:Mustache 0.4%