Font Awesome v4.1.0 for Swift
Font aliases has not been ported yet, in order to refer to a font you have to strip all the - (minus) inside its name in order to refer to that icon.
In order to install add all the files inside MCFontAwesome directory to your project paying attention to copy files inside.
Once finished edit your plist file adding this key:
Pay attention that a new row has been added and then edit the content adding FontAwesome.otf as new supported font
CocoaPods (still not available)
Use CocoaPods in order to quick install, you only need to add
to your podfile and install with pod install command
Eg. I want to use fa-glass i need to write this code snippet:
testLbl.font = UIFont(name: "FontAwesome", size: 20) testLbl.text = NSString().fontAwesomeIconWithName(FAIcon.faglass)
This work is free of any charge, but if you want to donate for a beer or a coffee feel free to do it!
- The Font Awesome font is licensed under the SIL OFL 1.1:
- Font Awesome CSS, LESS, and SASS files are licensed under the MIT License:
- MCFontAwesome is licensed under MIT License
Font Awesome by Dave Gandy - http://fontawesome.io