blitz (fl•ash), verb
- Shine in a bright but brief, sudden, or intermittent way
- Control the display of temporary messages via SVProgressHUD
motion-blitz's initial development was sponsored by dscout. Many thanks to them!
Usage
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!')
Masks
: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)
Setup
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'
Dependencies
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.
Contributing
- Fork it
- 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
Thanks
- Sam Vermette for SVProgressHUD
- Parker Selbert for the Norweigan-inspired name
- dscout - for their sponsorship