Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keitaoouchi/OcticonsKit
Use Octicons in your Swift projects.
https://github.com/keitaoouchi/OcticonsKit
carthage cocoapods ios-swift ios-ui octicons swift uifont uiimage
Last synced: 4 days ago
JSON representation
Use Octicons in your Swift projects.
- Host: GitHub
- URL: https://github.com/keitaoouchi/OcticonsKit
- Owner: keitaoouchi
- License: mit
- Created: 2016-09-17T16:47:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-09T05:23:35.000Z (over 6 years ago)
- Last Synced: 2024-08-07T10:49:53.743Z (4 months ago)
- Topics: carthage, cocoapods, ios-swift, ios-ui, octicons, swift, uifont, uiimage
- Language: Swift
- Homepage: http://cocoadocs.org/docsets/OcticonsKit/
- Size: 173 KB
- Stars: 54
- Watchers: 5
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - OcticonsKit - Use Octicons as UIImage / UIFont in your projects with Swifty manners. (Text / Font)
- awesome-swift - OcticonsKit - Use Octicons as UIImage / UIFont in your projects. (Libs / Fonts)
- awesome-swift - OcticonsKit - Use Octicons as UIImage / UIFont in your projects. (Libs / Fonts)
- awesome-ios-star - OcticonsKit - Use Octicons as UIImage / UIFont in your projects with Swifty manners. (Text / Font)
- fucking-awesome-swift - OcticonsKit - Use Octicons as UIImage / UIFont in your projects. (Libs / Fonts)
- awesome-swift - OcticonsKit - Use Octicons in your Swift projects. ` 📝 3 years ago ` (Fonts [🔝](#readme))
README
# OcticonsKit
[![CI Status](http://img.shields.io/travis/keitaoouchi/OcticonsKit.svg?style=flat)](https://travis-ci.org/keitaoouchi/OcticonsKit)
[![Swift 4.0](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat)](https://swift.org/)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Version](https://img.shields.io/cocoapods/v/OcticonsKit.svg?style=flat)](http://cocoapods.org/pods/OcticonsKit)
[![License](https://img.shields.io/cocoapods/l/OcticonsKit.svg?style=flat)](http://cocoapods.org/pods/OcticonsKit)
[![Platform](https://img.shields.io/cocoapods/p/OcticonsKit.svg?style=flat)](http://cocoapods.org/pods/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
```swift
someLabel.font = UIFont.octicon(of: 18)
someLabel.text = String.octicon(with: .flame)
```### octicons as UIImage
```swift
someImageView.image = UIImage.octicon(with: .flame, textColor: UIColor.orange, size: CGSize(width: 18, height: 18))
```For another icons, plaease see the [source](https://github.com/keitaoouchi/OcticonsKit/blob/master/OcticonsKit/Classes/octicons.swift),
or build Example App.## Requirements
| Target | Version |
|-------------------|---------|
| iOS | => 8.0 |
| Swift | => 4.0 |## Installation
OcticonsKit is available through [CocoaPods](http://cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage).
### CocoaPods
```ruby
pod "OcticonsKit"
```### Carthage
```
github "keitaoouchi/OcticonsKit"
```for detail, please follow the [Carthage Instruction](https://github.com/Carthage/Carthage#if-youre-building-for-ios-tvos-or-watchos)
## Author
keita.oouchi, [email protected]
## License
[octicons.ttf](https://octicons.github.com/) file is licensed under [MIT license](https://github.com/primer/octicons/blob/master/LICENSE).
When using the GitHub logos, be sure to follow the [GitHub logo guidelines](https://github.com/logos).OcticonsKit is available under the MIT license. See the LICENSE file for more info.