Skip to content

Swift-Font-Awesome is an "Font Awesome" implementation which written in Swift.

License

Notifications You must be signed in to change notification settings

design-study/Swift-Font-Awesome

 
 

Repository files navigation

Swift-Font-Awesome

Git Twitter Twitter eMail

Swift-Font-Awesome is an Font Awesome implementation which written in Swift.

Features

  • UILable
  • UIImage or UIImage with circle
  • UIBarButtonItem
  • UIButton
  • All extension can with FontAwesome and it's own text

Snapshots

Requirements

  • iOS 8.0+ / Mac OS X 10.9+
  • Xcode 6.1

Communication

Installation

copy "Source" floder files to you porject.

Usage

UILable

let like = UILabel(frame: CGRectMake(150, 70, 100, 25))
like.faTextAlignment = .Left
like.text = " Like"
like.fa = Fa.Heart

UIButton

button.faTextAlignment = .Left
button.fa(Fa.Comment, forState: .Normal)

UIBarButtonItem

rightButton.fa = Fa.Bars

UIImage

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))

FAQ

When should I use Swift-Font-Awesome?

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.

License

Alamofire is released under the MIT license. See LICENSE for details.

About

Swift-Font-Awesome is an "Font Awesome" implementation which written in Swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%