Motion::Iconic
RubyMotion wrapper around FontAwesomeKit.
Installation
Add this line to your application's Gemfile:
gem "motion-iconic"
And then execute:
$ bundle
Dependencies
Motion::Iconic depends on FontAwesomeKit as a CocoaPod. You do not need to add anything to your Rakefile, but you do need to run rake pod:install.
Usage
Motion::Iconic::Icon.awesomeIcon(:codeFork, withSize:42)
That's quite a mouthful... So Motion::Iconic::Icon is also aliased to Mic.
Mic.foundationIcon(:socialGithub, withSize:73)
Here is the full list of implemented methods:
Mic.icon(icon, withSize:size, inCollection:collection)— returns anFAK*instance.Mic.awesomeIcon(icon, withSize:size)— returns anFAKFontAwesomeinstance.Mic.foundationIcon(icon, withSize:size)— returns anFAKFoundationIconsinstance.Mic.IonIcon(icon, withSize:size)— returns anFAKIonIconsinstance.Mic.ZocialIcon(icon, withSize:size)— returns anFAKZocialinstance.
For information on what you can do with those objects, refer to the FontAwesomeKit documentation.
Contributing
- Fork it ( http://github.com/AzizLight/motion-iconic/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request