infinitered / ProMotion-menu

RubyMotion gem allowing you to easily setup a facebook or Path style hidden slide menu easily with the ProMotion gem.
74 stars 29 forks source link

Added "transition_animation=" method to Drawer #49

Closed Brian-Egan closed 9 years ago

Brian-Egan commented 9 years ago

I added a new 'Transition' module which allows easy access to MMDrawerController's four prebuilt transition animation blocks. These create very smooth reveals for the menu. ProMotion::Menu::Drawer instances now accept the transition_animation= method which accepts one of four arguments (descriptions taken from the MMDrawerController docs:

Descriptions of the individual visual state animation blocks (same as above) are included in the VISUAL_STATES hash in the Transition module.

Tests, though admittedly they are somewhat weak, are also included.

jamonholmgren commented 9 years ago

Nice!!

ryanlntn commented 9 years ago

Truly awesome @Brian-Egan ! I just have a few questions/suggestions about the implementation.

ryanlntn commented 9 years ago

@Brian-Egan I'm going to go ahead and merge. Thanks for the contribution!