Skip to content

FontAwesome 5 Swift implementation for iOS, tvOS & macOS

License

Notifications You must be signed in to change notification settings

CrossMediaConcept/Awesome

 
 

Repository files navigation

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!

About

FontAwesome 5 Swift implementation for iOS, tvOS & macOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 96.5%
  • Objective-C 1.8%
  • Ruby 1.7%