SFSymbol: SFSymbol and SFSymbol 2
All the SFSymbols at your fingertips (SFSymbol 1.1 & 2)
SFSymbol2 are an
enums that contain the identifier strings of all of apple's
SFSymbol.playCircle produces the
"play.circle" that can then be used to instantiate a system symbol via:
SFSymbols (1.1 and 2) is a real treat from apple, Apple's official list of Symbols that are available to use free of charge when writing software on any of Apple's recent platforms. There is one downfall however, it is a pain in the neck to look up exact symbol names, take for example:
That is a long string to remember and digging through the catalog of SF Symbols to find in would be quite a waste of time.
Wouldn't it be easier if you could just use code completion?
Thats what this super micro library aims to do.
Swift Package Manager (Preferred)
Since Xcode integrated swift package manager natively into the IDE you can add SFSymbol simply by:
Swift Packages ->
Add Package Dependency...
when prompted to enter a package URL paste:
and click next & finish to automagically install SFSymbol through Xcode & SPM!
Don't want that additional third party dependency? Then just simply copy over the file
SFSymbol.swift into your project's appropriate folder!
Just add this line to your podfile:
Contributing to this project
Contributions are highly welcome
If there is something you wish to fix about the project, or wish to add any other kind of enhancements, propose to add to the project. Please feel free to send over a pull request or open an issue for this project.
SFSymbol is released under the MIT license. See LICENSE for details.
You may find interesting
SFSymbol 2 - 2020-08-23 17:20:16
This release includes support for SFSymbol 2 glyphs.
Please use the
SFSymbol2 enum for SFSymbol 2 identifiers and
SFSymbol for SFSymbol 1.1 identifiers.
SPM Fix for tvOS - 2020-07-30 17:17:46
This release addresses an issue with Swift Package Manager settings with iOS and tvOS versions.
SwiftUI Image extension - 2020-07-17 17:08:05
This release just simply adds the same functionality that this library added to UIKit's
Now you can create
Images from SFSymbols in SwiftUI with a line of code like this:
Xcode 12 support - 2020-07-15 16:55:06
This release adds support for Xcode 12.
Conveniently convenient - 2020-07-11 03:03:31
This version adds an even briefer way to use SFSymbols in your code like this:
Swift Package Manager - 2019-11-04 12:28:55
This release simply adds in SPM support.
Here goes nothing - 2019-10-28 16:26:47
This is the initial release, I hope this micro repository finds you well.