dekatotoro / SlideMenuControllerSwift

iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.
MIT License
3.4k stars 755 forks source link

Drawer not hiding issue #305

Open SwapnilDhotre opened 7 years ago

SwapnilDhotre commented 7 years ago

Hi, I have implement drawer on both sides. When my app starts in portrait mode and then I present a view controller(not by opening any of the drawer) after that when I am rotating device in Landscape and dismissing view controller it automatically shows right drawer on which drawer is implemented.

alexookah commented 6 years ago

i have the same issue

erolando commented 6 years ago

function closeRightNonAnimation take size width wrong after willTransition.

my solution:

change closeRightNonAnimation() by closeRightNonAnimation(size: CGSize) let finalXOrigin: CGFloat = view.bounds.width by let finalXOrigin: CGFloat = size.width

and

viewWillTransition self.closeRightNonAnimation() by self.closeRightNonAnimation(size: size)