From 7c211c31087b7885b2107784016769a176c85000 Mon Sep 17 00:00:00 2001 From: gme_2 Date: Thu, 6 Sep 2018 12:05:58 +0900 Subject: [PATCH] Main Module configured --- GMERemittance/AppDelegate.swift | 20 +-- GMERemittance/Home/Home.storyboard | 4 +- GMERemittance/Home/HomeViewController.swift | 35 +++--- GMERemittance/Login/LoginViewController.swift | 10 +- .../View/MainViewController.swift | 49 ++++---- .../Wireframe/MainWireframe.swift | 114 ++++-------------- .../Wireframe/MainWireframeInput.swift | 1 - .../SendMoneyParentInteractor.swift | 8 +- .../View/SendMoneyParent.storyboard | 1 + .../Wireframe/SendMoneyParentWireframe.swift | 2 +- GMERemittance/Profile/Profile.storyboard | 4 +- .../RecipientListViewController.storyboard | 4 +- 12 files changed, 102 insertions(+), 150 deletions(-) diff --git a/GMERemittance/AppDelegate.swift b/GMERemittance/AppDelegate.swift index 4103ca06..35aa33d1 100644 --- a/GMERemittance/AppDelegate.swift +++ b/GMERemittance/AppDelegate.swift @@ -251,14 +251,18 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD return } - let storyboard = UIStoryboard.init(name: "Main", bundle: Bundle.main) - if let tabViewController = storyboard.instantiateViewController(withIdentifier: "TabBarController") as? UITabBarController { - - nav.viewControllers = [tabViewController] - - window?.rootViewController = nav - } - + let mainWireFrame = MainWireframe.shared + let tabbarViewController = mainWireFrame?.getMainView() + window?.rootViewController = tabbarViewController + window?.makeKeyAndVisible() +// let storyboard = UIStoryboard.init(name: "Main", bundle: Bundle.main) +// if let tabViewController = storyboard.instantiateViewController(withIdentifier: "TabBarController") as? UITabBarController { +// +// nav.viewControllers = [tabViewController] +// +// window?.rootViewController = nav +// } + } else { let storyboard = UIStoryboard.init(name: "Main", bundle: Bundle.main) diff --git a/GMERemittance/Home/Home.storyboard b/GMERemittance/Home/Home.storyboard index cce46345..4575380b 100644 --- a/GMERemittance/Home/Home.storyboard +++ b/GMERemittance/Home/Home.storyboard @@ -1111,10 +1111,10 @@ - +