TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2015 |
SPMSupports SPM | ✗ |
Maintained by longhao.
Swift-Font-Awesome is an Font Awesome implementation which written in Swift.
copy “Source” floder files to you porject.
let like = UILabel(frame: CGRectMake(150, 70, 100, 25))
like.faTextAlignment = .Left
like.text = " Like"
like.fa = Fa.Heart
let font = UILabel(size: 24)
button.faTextAlignment = .Left
button.fa(Fa.Comment, forState: .Normal)
rightButton.fa = Fa.Bars
image with circle:
let image = UIImage(faCircle: Fa.Twitter, font: FaType.X3.font, backgroundColor: .clearColor())
image without circle:
let image = UIImage(fa: Fa.Twitter, font: FaType.X3.font, color: .blueColor(), backgroundColor: .clearColor(), offset: CGPoint(x: 0, y: 8))
If you’re starting a new project in Swift, and you don’t want to search icons from network, you can use Swift-Font-Awesome to instead of icon images.
Alamofire is released under the MIT license. See LICENSE for details.