Ionicons integration for Swift and iOS.
Built for Swift 2.0 - For Swift 1.2 support use 2.0.1 or earlier.
- Includes all 732 icons.
- Tiny API, just one
enum
type and two methods. - All icons are always balanced and squared.
- Generate icons as
UIImage
orUILabel
Carthage: Add github tidwall/IoniconsSwift
to your Cartfile
.
CocoaPods: Add pod 'IoniconsSwift', :git => 'http://github.com/cdebortoli/IoniconsSwift.git', :branch => 'cocoapods'
to your Podfile
.
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())
Josh Baker @tidwall
The IoniconsSwift source code is available under the MIT License.