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.
This package is available through Swift Package Manager.
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.
let image: UIImage = Octicons.alert24.image
let image: Image = Octicons.alert24.swiftUiImage
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