Use Octicons in your Swift projects
OcticonsKit
OcticonsKit internally use octicons.ttf v4.3.0
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
octicons as UILabel
someLabel.font = UIFont.octicon(of: 18)
someLabel.text = String.octicon(with: .flame)
octicons as UIImage
someImageView.image = UIImage.octicon(with: .flame, textColor: UIColor.orange, size: CGSize(width: 18, height: 18))
For another icons, plaease see the source, or build Example App.
Requirements
Target | Version |
---|---|
iOS | => 8.0 |
Swift | => 4.0 |
Installation
OcticonsKit is available through CocoaPods or Carthage.
CocoaPods
pod "OcticonsKit"
Carthage
github "keitaoouchi/OcticonsKit"
for detail, please follow the Carthage Instruction
Author
keita.oouchi, [email protected]
License
octicons.ttf file is licensed under MIT license. When using the GitHub logos, be sure to follow the GitHub logo guidelines.
OcticonsKit is available under the MIT license. See the LICENSE file for more info.