SlideMenuControllerSwift
SlideMenuControllerSwift copied to clipboard
Drawer not hiding issue
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.
i have the same issue
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)