Browse Source

Added chatNavigationController

Bastian van de Wetering 7 years ago
parent
commit
5c53232fc8

+ 1 - 1
deltachat-ios.xcodeproj/project.pbxproj

@@ -326,6 +326,7 @@
 			children = (
 				7A9FB15B1FB07364001FEA36 /* libraries */,
 				7A9FB1431FB061E2001FEA36 /* AppDelegate.swift */,
+				7A451DAF1FB1F84900177250 /* AppCoordinator.swift */,
 				7A9FB1451FB061E2001FEA36 /* ViewController.swift */,
 				7A9FB14A1FB061E2001FEA36 /* Assets.xcassets */,
 				7A9FB14C1FB061E2001FEA36 /* LaunchScreen.storyboard */,
@@ -333,7 +334,6 @@
 				7A9FB1561FB06540001FEA36 /* deltachat-ios-Bridging-Header.h */,
 				7A451D921FB1B1DB00177250 /* wrapper.c */,
 				7A451D931FB1B1DB00177250 /* wrapper.h */,
-				7A451DAF1FB1F84900177250 /* AppCoordinator.swift */,
 				AE0D26FC1FB1FE88002FAFCE /* ChatViewController.swift */,
 			);
 			path = "deltachat-ios";

+ 4 - 1
deltachat-ios/AppCoordinator.swift

@@ -13,7 +13,10 @@ class AppCoordinator {
     func setupMainViewControllers(window: UIWindow) {
         let contactViewController = UIViewController()
         contactViewController.view.backgroundColor = UIColor.red
+        
         let chatViewController = UIViewController()
+        let chatNavigationController = UINavigationController(rootViewController: chatViewController)
+        
         chatViewController.view.backgroundColor = UIColor.green
         let settingsViewController = UIViewController()
         settingsViewController.view.backgroundColor = UIColor.blue
@@ -30,7 +33,7 @@ class AppCoordinator {
         
         tabBarController.viewControllers = [
             contactViewController,
-            chatViewController,
+            chatNavigationController,
             settingsViewController,
         ]
         

+ 1 - 0
deltachat-ios/ChatViewController.swift

@@ -15,6 +15,7 @@ class ChatViewController: UIViewController {
 
         // Do any additional setup after loading the view.
     }
+    
 
     override func didReceiveMemoryWarning() {
         super.didReceiveMemoryWarning()