Sha256: 57d44e7b944bc30a776c100b3bbad46104b129fcd1906d0a31520c895e42b388
Contents?: true
Size: 876 Bytes
Versions: 1
Compression:
Stored size: 876 Bytes
Contents
class Wizard1ViewController < MotionWizard::WizardViewController steps Step1ViewController, Step2ViewController, Step3ViewController, Step4ViewController stylesheet :wizard_view_controller layout :wizard_view_controller def setup_index_item_at(index_item, index) layout(index_item, :index_item) index_item.when_selected{ index_item.animate_to_stylename(:index_item_selected) } index_item.when_unselected do UIView.animateWithDuration(0.5, animations: -> { layout(index_item, :index_item) }, completion: ->(_){ layout(index_item, :index_item_unselected) }) end end def when_finished App.alert("Now you can do whatever you like with this #{wizard_data}") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-wizard-0.1 | samples/wizard-1/app/controllers/wizard_1_view_controller.rb |