RubyMotion wrapper for SVProgressHUD.
MIT License
motion-blitz's initial development was sponsored by dscout. Many thanks to them!
Notifier = Motion::Blitz
Notifier.show
Notifier.show('Hold on!')
Notifier.show(:black)
Notifier.show('Hold on!', :gradient)
Notifier.loading # 'Loading...'
Notifier.loading(:black)
Notifier.progress(0.5)
Notifier.progress(0.8, 'Almost Done!')
Notifier.progress(0.8, :clear)
Notifier.progress(0.8, 'Almost Done!', :black)
Notifier.dismiss
Notifier.success
Notifier.success('All right!')
Notifier.error
Notifier.error('Whoops!')
:none # allow user interactions, don't dim background UI (default)
:clear # disable user interactions, don't dim background UI
:black # disable user interactions, dim background UI with 50% translucent black
:gradient # disable user interactions, dim background UI with translucent radial gradient (a-la-alertView)
If you're using Bundler, add this line to your app's Gemfile:
gem 'motion-blitz'
and then run:
$ bundle install
Or install it yourself with:
$ gem install motion-blitz
and require motion-blitz in your Rakefile:
require 'rubygems'
require 'motion-blitz'
motion-blitz depends on the SVProgressHUD CocoaPod.
You don't have to add SVProgressHUD to your Rakefile (motion-blitz handles that
dependency for you) but you need to run $ rake pod:install
to download and
install it.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)