Open AaoIi opened 9 years ago
This animation is the default when you use 'pushFrontViewController'. You can instead use a combination of 'setFrontViewController' and 'setFrontViewPosition' to achieve what you want.
@John-Lluch Loving the simplicity of this class but I'd also like to just have the pushFrontViewController without animation. Is there perhaps now an option to specify the animation style or "switch" it off? Could this be a potential feature?
As @John-Lluch wrote, use setFrontViewController or setFrontViewPosition OR also rearViewRevealOverdraw = 0 with pushFrontViewController.
@iDevelopper rearViewRevealOverdraw = 0 sounds like it could well be what I need - as I can still keep things nice and simple with segues. I'll try that. Thanks!
@iDevelopper @John-Lluch It's worth noting the answer for this, in case anybody else wants no animation on menu actions whilst wanting to use the storyboard-based approach. I simply had to add self.revealViewController.rearViewRevealOverdraw = 0; in any viewcontroller I used as a frontViewController - easily done where adding actions for the menu button, for example. This way I can still use storyboard segues and wire everything up easily.
@robertturrall , You can do this only one time, in your first front view controller. It will work for all front view controller. As self.revealViewController.tapGestureRecognizer; and self.revealViewController.panGestureRecognizer;
Hello ,
What i want to do here is when i select an option from the menu , not to expand to the right like 40 px then close to the left , i just want the menu to close to the left without expanding to the right.
i hope somebody can help Thanks