ENSwiftSideMenu icon indicating copy to clipboard operation
ENSwiftSideMenu copied to clipboard

How can I make the menu not animate at all when closing?

Open Horray opened this issue 10 years ago • 1 comments

How can I make the menu not animate at all when closing?

Horray avatar Sep 06 '15 21:09 Horray

Setting bouncingEnabled to false makes it use a simple UIView.animation, and then setting animationDuration to 0 would theoretically make the animation instantaneous. However, that's both for opening and closing the menu. If you want to remove animation only for closing you'll have to add a new setting or set these two at the right moment.

ncerezo avatar Sep 07 '15 11:09 ncerezo