IcoMoonKit is an iconic font library written in Swift.
And, It provides code generator for vendor such an IcoMoon.
- Xcode 6.3+
- iOS
- 8.0+ (Available as a dynamic framework)
- 7.0+ (Swift code is compatible)
- OSX
- Not yet supported.
- Go, Ruby (If you want to use tools.)
- Add the following to your Cartfile:
github "kaneshin/IcoMoonKit" ~> 0.1
. - Run
carthage update
. - Add IcoMoonKit as an embedded framework.
- Clone
IcoMoonKit
as a git submodule. - Add
IcoMoonKit.xcodeproj
file into your Xcode project. - Link
IcoMoonKit.framework
product for your target. - Embed
IcoMoonKit.framework
.
Underconstructing, use ruby version instead of Go tool.
$ go get github.com/kaneshin/IcoMoonKit/tools/icom
Add generated code into your project if you use generator.
var feather = FeatherGlyph.AirPlay(size: 40, color: UIColor.whiteColor())
feather.color = UIColor.blackColor()
feather.backgroundColor = UIColor.whiteColor()
// As an image
imageView.image = feather.image(size: frame.size)
// An a text
label.attributedText = feather.attributedText
See tools/README.md.