motion-smarticons for RubyMotion
motion-smarticons lets you overlay information text like commit hash and version number on top of RubyMotion app icons:
Installation
gem install motion-smarticonsrequire 'motion-smarticons'
or add it to your Gemfile:
gem 'motion-smarticons'
Usage
Add the smarticons commands at the end of your Motion::Project::App.setup block to ensure your icons and app info is finalized before generating the new icons.
By default, smarticons will display the app.version and latest commit hash, using the #smarticons! method:
Motion::Project::App.setup do |app|
# ...
app.smarticons!
endIf you want to display a custom string, simply use #smarticons=:
Motion::Project::App.setup do |app|
# ...
app.smarticons = "Hello World"
endGotchas
iOS will cache old app icons, even after a clean build. If your icon hasn't updated, move it in and out of a folder to update it to the latest version.
Credits
Shoutout to @merowing_ for his article on generating app icons.
Contact
Clay Allsopp (http://clayallsopp.com)
License
motion-smarticons is available under the MIT license. See the LICENSE file for more info.