Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matteocrippa/MCFontAwesome
Font Awesome support in Swift
https://github.com/matteocrippa/MCFontAwesome
List: MCFontAwesome
Last synced: 3 months ago
JSON representation
Font Awesome support in Swift
- Host: GitHub
- URL: https://github.com/matteocrippa/MCFontAwesome
- Owner: matteocrippa
- License: other
- Created: 2014-06-27T12:15:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-03T15:14:43.000Z (almost 10 years ago)
- Last Synced: 2024-05-21T01:50:01.908Z (8 months ago)
- Language: Swift
- Size: 233 KB
- Stars: 18
- Watchers: 6
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift-cn - MCFontAwesome - fontawesome porting for Swift. (Libs / Fonts)
README
MCFontAwesome
=============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.
Install
=========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:
- UIAppFonts
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
```
pod 'MCFontAwesome'
```to your podfile and install with **pod install** command
Usage
============Eg. I want to use **fa-glass** i need to write this code snippet:
```swift
testLbl.font = UIFont(name: "FontAwesome", size: 20)
testLbl.text = NSString().fontAwesomeIconWithName(FAIcon.faglass)
```Donations
===========================This work is free of any charge, but if you want to donate for a beer or a coffee feel free to do it!
`Bitcoin: 1BWmKKaDzyvVqNQgZNUWV7rcU91MMqPAXT`
License
============- The Font Awesome font is licensed under the SIL OFL 1.1:
- http://scripts.sil.org/OFL
- Font Awesome CSS, LESS, and SASS files are licensed under the MIT License:
- http://opensource.org/licenses/mit-license.html
- MCFontAwesome is licensed under MIT License
- http://opensource.org/licenses/mit-license.html
Attribution
=============
- `Font Awesome by Dave Gandy - http://fontawesome.io`