Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nirma/sfsymbol
SFSymbols 6 through 1.1 at your fingertips!
https://github.com/nirma/sfsymbol
sfsymbol sfsymbol6
Last synced: about 6 hours ago
JSON representation
SFSymbols 6 through 1.1 at your fingertips!
- Host: GitHub
- URL: https://github.com/nirma/sfsymbol
- Owner: Nirma
- License: mit
- Created: 2019-10-28T14:25:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-31T13:39:56.000Z (3 months ago)
- Last Synced: 2025-01-15T16:35:01.317Z (7 days ago)
- Topics: sfsymbol, sfsymbol6
- Language: Swift
- Homepage:
- Size: 304 KB
- Stars: 193
- Watchers: 5
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SFSymbol: SFSymbols 6 through 1.1
![Build Status](https://github.com/nirma/sfsymbol/actions/workflows/build.yml/badge.svg)
[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-purple.svg)](https://github.com/apple/swift-package-manager)
[![CocoaPods compatible](https://img.shields.io/cocoapods/v/SFSymbol.svg)](#cocoapods)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)All the SFSymbols at your fingertips (SFSymbol 6 through 1.1)
![demo6](https://github.com/user-attachments/assets/5b1958b4-d3ab-4749-98c6-9b2fc04b33df)
## Usage
`SFSymbol6`, `SFSymbol5` and so on are `enum`s that contain the identifier strings of all of apple's SFSymbols version 6 through 1.1.For example `SFSymbol6.Camera.cameraMeteringPartial.image` produces a SwiftUI `Image` or omitting the `.image` part will return an enum case with the associated raw value of `"camera.metering.partial"`.
https://github.com/user-attachments/assets/96eb227f-e34e-442c-b42f-e5826973030c
#### SwiftUI
```swift
SFSymbol6.Camera.cameraMeteringPartial.image
```*or*
#### UIKit
```swift
UIImage(symbol: SFSymbol6.Camera.cameraMeteringPartial)
```## Installation
### Swift Package Manager (Preferred)
Simply add a package to your project passing in `https://github.com/Nirma/SFSymbol` and your preferred version i.e `3.0`### Cocoapods
Just add this line to your podfile:```shell
pod 'SFSymbol'
```### Carthage
```shell
github "Nirma/SFSymbol"
```## 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.## License
SFSymbol is released under the MIT license. [See LICENSE](https://github.com/Nirma/SFSymbol/blob/master/LICENSE) for details.