Skip to content

jjb3rd/IoniconsSwift

 
 

Repository files navigation

IoniconsSwift

Ionicons integration for Swift and iOS.

Built for Swift 2.0 - For Swift 1.2 support use 2.0.1 or earlier.

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/cdebortoli/IoniconsSwift.git', :branch => 'cocoapods' 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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 90.0%
  • Go 4.8%
  • Ruby 3.1%
  • Objective-C 1.8%
  • Shell 0.3%