Iron-Ham / Octicons.swift

A scalable set of icons

Home Page:https://primer.style/octicons/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A scalable set of icons

https://primer.style/octicons/

License:MIT License


Languages

Language:Swift 100.0%