0.02
No commit activity in last 3 years
No release in over 3 years
RubyMotion wrapper for SVProgressHUD
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

motion-blitz Gem Version Code Climate Analytics

blitz (fl•ash), verb

  1. Shine in a bright but brief, sudden, or intermittent way
  2. Control the display of temporary messages via SVProgressHUD

motion-blitz's initial development was sponsored by dscout. Many thanks to them!

Success

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Thanks