From f641e674dbaf6cac09a9e9e6b60b08b8d5a8036d Mon Sep 17 00:00:00 2001 From: jonkykong Date: Tue, 2 Jul 2019 01:25:29 -0700 Subject: [PATCH] Refactoring --- Example/AppDelegate.swift | 2 +- Example/Main.storyboard | 313 ++++++++++-------- Example/MainViewController.swift | 133 ++++---- Example/PresentedViewController.swift | 2 +- Pod/Classes/Extensions.swift | 72 ++++ Pod/Classes/Initializable.swift | 39 +++ Pod/Classes/Protected.swift | 21 -- .../SideMenuInteractionController.swift | 10 +- Pod/Classes/SideMenuManager.swift | 62 +--- Pod/Classes/SideMenuPresentStyle.swift | 85 +++++ .../SideMenuPresentationController.swift | 211 +++--------- .../SideMenuTransitionController.swift | 13 +- .../UISideMenuNavigationController.swift | 296 ++++++++++------- Pod/Classes/UITableViewVibrantCell.swift | 6 +- Pods/Pods.xcodeproj/project.pbxproj | 38 ++- 15 files changed, 721 insertions(+), 582 deletions(-) create mode 100644 Pod/Classes/Extensions.swift create mode 100644 Pod/Classes/Initializable.swift create mode 100644 Pod/Classes/SideMenuPresentStyle.swift diff --git a/Example/AppDelegate.swift b/Example/AppDelegate.swift index 759afa5..852b8d6 100644 --- a/Example/AppDelegate.swift +++ b/Example/AppDelegate.swift @@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - fileprivate func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [AnyHashable: Any]?) -> Bool { + private func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [AnyHashable: Any]?) -> Bool { // Override point for customization after application launch. return true } diff --git a/Example/Main.storyboard b/Example/Main.storyboard index 29575a7..e3172b5 100644 --- a/Example/Main.storyboard +++ b/Example/Main.storyboard @@ -1,11 +1,11 @@ - + - + @@ -40,100 +40,17 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -144,52 +61,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - + + + + +