From e49d564a2fd3dcc07accaa07c3e27f43e6556e22 Mon Sep 17 00:00:00 2001 From: jonkykong Date: Mon, 6 Mar 2017 01:57:00 -0800 Subject: [PATCH] Removal of no longer needed logic. --- .../UISideMenuNavigationController.swift | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/Pod/Classes/UISideMenuNavigationController.swift b/Pod/Classes/UISideMenuNavigationController.swift index 76709b4..2021046 100644 --- a/Pod/Classes/UISideMenuNavigationController.swift +++ b/Pod/Classes/UISideMenuNavigationController.swift @@ -66,27 +66,6 @@ open class UISideMenuNavigationController: UINavigationController { } } - override open func viewWillDisappear(_ animated: Bool) { - super.viewWillDisappear(animated) - - // when presenting a view controller from the menu, the menu view gets moved into another transition view above our transition container - // which can break the visual layout we had before. So, we move the menu view back to its original transition view to preserve it. - if !isBeingDismissed { - if let mainView = presentingViewController?.view { - switch SideMenuManager.menuPresentMode { - case .viewSlideOut, .viewSlideInOut: - mainView.superview?.insertSubview(view, belowSubview: mainView) - case .menuSlideIn, .menuDissolveIn: - if let tapView = SideMenuTransition.tapView { - mainView.superview?.insertSubview(view, aboveSubview: tapView) - } else { - mainView.superview?.insertSubview(view, aboveSubview: mainView) - } - } - } - } - } - override open func viewDidDisappear(_ animated: Bool) { super.viewDidDisappear(animated)