Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.83 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.83 KB

Awesome

Slack Version License Platform

Super easy to use library containing the brand new FontAwesome 5, completely redesigned for Swift 4

Slack

Get help using and installing this product on our Slack, channel #help-awesome

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Awesome is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AwesomeEnum'

for Carthage just do:

github "LiveUI/Awesome"

Usage

Import will be slightly different for Cocoapods/Carthage. Sorry for the confusion of names but some unreasonable fellow has already registered an Awesome pod before us :).

import AwesomeEnum // Cocoapods
import Awesome // Carthage

All icons are available through autogenerated enums like this:

let image = Awesome.solid.handScissors.asImage(size: 40.0)
// or
let image = Awesome.brand.android.asImage(size: CGSize(width: 40, height: 40), color: .red, backgroundColor: .blue) // :trollface:
// or
let attributedText = Awesome.regular.envelopeOpen.asAttributedText(fontSize: 17, color: .red, backgroundColor: .blue)

Author

Ondrej Rafaj , [email protected]

License

Awesome is available under the MIT license. See the LICENSE file for more info. All fonts are property of Font Awesome!