tidwall / IoniconsSwift

Ionicons for Swift and iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IoniconsSwift

Ionicons integration for Swift and iOS.

Built for Swift 4.0 - for older versions of swift please use the swift\1.2, swift\2.0, and swift\3.0 branches.

Features

  • Includes all 732 icons.
  • Tiny API, just one enum type and two methods.
  • All icons are always balanced and squared.
  • Generate icons as UIImage or UILabel

Installation

Carthage: Add github tidwall/IoniconsSwift to your Cartfile.
CocoaPods: Add pod 'IoniconsSwift', :git => 'http://github.com/tidwall/IoniconsSwift.git', :branch => 'master' to your Podfile.

Example

import IoniconsSwift

// Square UIImage of an icon.
let image = Ionicons.alert.image(35)                                 
let image = Ionicons.iosClock.image(35, color: UIColor.greenColor()) 

// Square UILabel
let label = Ionicons.alert.label(35)                                 
let label = Ionicons.iosClock.label(35, color: UIColor.greenColor()) 

Contact

Josh Baker @tidwall

License

The IoniconsSwift source code is available under the MIT License.

About

Ionicons for Swift and iOS

License:MIT License


Languages

Language:Swift 89.9%Language:Go 5.0%Language:Ruby 2.8%Language:Objective-C 1.9%Language:Shell 0.4%