From f15081a31bd28e7986ea35ec6e76ffb2708f76b4 Mon Sep 17 00:00:00 2001 From: agates4 Date: Thu, 19 Jan 2017 14:23:47 -0500 Subject: [PATCH] fixed spacing / indentation issues --- Pod/Classes/SideMenuManager.swift | 20 +++++++++---------- .../UISideMenuNavigationController.swift | 10 +++++----- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Pod/Classes/SideMenuManager.swift b/Pod/Classes/SideMenuManager.swift index efc411e..945878f 100644 --- a/Pod/Classes/SideMenuManager.swift +++ b/Pod/Classes/SideMenuManager.swift @@ -6,14 +6,14 @@ // /* Example usage: - // Define the menus - SideMenuManager.menuLeftNavigationController = storyboard!.instantiateViewController(withIdentifier: "LeftMenuNavigationController") as? UISideMenuNavigationController - SideMenuManager.menuRightNavigationController = storyboard!.instantiateViewController(withIdentifier: "RightMenuNavigationController") as? UISideMenuNavigationController - - // Enable gestures. The left and/or right menus must be set up above for these to work. - // Note that these continue to work on the Navigation Controller independent of the View Controller it displays! - SideMenuManager.menuAddPanGestureToPresent(toView: self.navigationController!.navigationBar) - SideMenuManager.menuAddScreenEdgePanGesturesToPresent(toView: self.navigationController!.view) + // Define the menus + SideMenuManager.menuLeftNavigationController = storyboard!.instantiateViewController(withIdentifier: "LeftMenuNavigationController") as? UISideMenuNavigationController + SideMenuManager.menuRightNavigationController = storyboard!.instantiateViewController(withIdentifier: "RightMenuNavigationController") as? UISideMenuNavigationController + + // Enable gestures. The left and/or right menus must be set up above for these to work. + // Note that these continue to work on the Navigation Controller independent of the View Controller it displays! + SideMenuManager.menuAddPanGestureToPresent(toView: self.navigationController!.navigationBar) + SideMenuManager.menuAddScreenEdgePanGesturesToPresent(toView: self.navigationController!.view) */ open class SideMenuManager : NSObject { @@ -30,7 +30,7 @@ open class SideMenuManager : NSObject { let appWindowRect = UIApplication.shared.keyWindow?.bounds ?? UIWindow().bounds return appWindowRect } - + /** The presentation mode of the menu. @@ -257,7 +257,7 @@ open class SideMenuManager : NSObject { - Parameter toView: The view to add gestures to. - Parameter forMenu: The menu (left or right) you want to add a gesture for. If unspecified, gestures will be added for both sides. - + - Returns: The array of screen edge gestures added to `toView`. */ @discardableResult open class func menuAddScreenEdgePanGesturesToPresent(toView: UIView, forMenu:UIRectEdge? = nil) -> [UIScreenEdgePanGestureRecognizer] { diff --git a/Pod/Classes/UISideMenuNavigationController.swift b/Pod/Classes/UISideMenuNavigationController.swift index f3a3366..abe088c 100644 --- a/Pod/Classes/UISideMenuNavigationController.swift +++ b/Pod/Classes/UISideMenuNavigationController.swift @@ -97,22 +97,22 @@ open class UISideMenuNavigationController: UINavigationController { SideMenuTransition.statusBarView?.isHidden = true coordinator.animate(alongsideTransition: { (context) -> Void in SideMenuTransition.presentMenuStart(forSize: size) - }) { (context) -> Void in - SideMenuTransition.statusBarView?.isHidden = false - } + }) { (context) -> Void in + SideMenuTransition.statusBarView?.isHidden = false + } } override open func prepare(for segue: UIStoryboardSegue, sender: Any?) { if let menuViewController: UINavigationController = SideMenuTransition.presentDirection == .left ? SideMenuManager.menuLeftNavigationController : SideMenuManager.menuRightNavigationController, let presentingViewController = menuViewController.presentingViewController as? UINavigationController { - presentingViewController.prepare(for: segue, sender: sender) + presentingViewController.prepare(for: segue, sender: sender) } } override open func shouldPerformSegue(withIdentifier identifier: String, sender: Any?) -> Bool { if let menuViewController: UINavigationController = SideMenuTransition.presentDirection == .left ? SideMenuManager.menuLeftNavigationController : SideMenuManager.menuRightNavigationController, let presentingViewController = menuViewController.presentingViewController as? UINavigationController { - return presentingViewController.shouldPerformSegue(withIdentifier: identifier, sender: sender) + return presentingViewController.shouldPerformSegue(withIdentifier: identifier, sender: sender) } return super.shouldPerformSegue(withIdentifier: identifier, sender: sender)