Swift-Font-Awesome is an Font Awesome implementation which written in Swift2.0. and support Font Awesome version 4.4.
- UILable
- UIImage or UIImage with circle or UIImage with square
- UIBarButtonItem
- UIButton
- UIFont
- All extension can with FontAwesome and it's own text
- iOS 8.0+ / Mac OS X 10.9+
- Xcode 6.1
- If you need help, mail to: [email protected]
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 = UIFont.fa(size: 24)
let button = UIButton(frame: CGRectMake(50, 220, 120, 30))
......
button.faTextAlignment = .Left
button.fa(Fa.Comment, forState: .Normal)
rightButton.fa = Fa.Bars
image with circle:
let image = UIImage(faCircle: Fa.Twitter, imageSize: 48, color: .whiteColor(), circleColor: .orangeColor(), backgroundColor: .clearColor())
image without circle:
let image = UIImage(fa: Fa.Twitter , imageSize: 48, color: .blueColor(), backgroundColor: .clearColor())
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.