Octicons.swift
Do you like Octicons? I do too. The purpose of this package is to make them available to iOS, tvOS, watchOS, and macOS apps in UIKit, AppKit, and SwiftUI.
These Octicons are all being represented by SVGs.
Installation
This package is available through Swift Package Manager.
Usage
This package requires the following minimum versions in your project:
- macOS 10_15
- iOS 13
- watchOS 6
- tvOS 13
Note that these are the same requirements of SwiftUI.
UIKit
let image: UIImage = Octicons.alert24.image
SwiftUI
let image: Image = Octicons.alert24.swiftUiImage
Contributing
I'm more than happy to accept Pull Requests! New Octicons are added all the time, and I'm not necessarily adding them as soon as I can.
In order to re-generate all of the Octicons in the media bundle, you'll need to have SwiftGen installed.
Then, run the following command:
swiftgen config run --config swiftgen.yml