Explorar o código

Added empty ChatViewController

Bastian van de Wetering %!s(int64=7) %!d(string=hai) anos
pai
achega
6060c50ac2

+ 8 - 4
deltachat-ios.xcodeproj/project.pbxproj

@@ -62,7 +62,8 @@
 		7A9FB5571FB08557001FEA36 /* stress.c in Sources */ = {isa = PBXBuildFile; fileRef = 7A9FB5351FB08557001FEA36 /* stress.c */; };
 		8B6D425BC604F7C43B65D436 /* Pods_deltachat_ios.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6241BE1534A653E79AD5D01D /* Pods_deltachat_ios.framework */; };
 		AE0D26FD1FB1FE88002FAFCE /* ChatListController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE0D26FC1FB1FE88002FAFCE /* ChatListController.swift */; };
-		AEACE2D61FB3219300DCDD78 /* Message.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEACE2D51FB3219300DCDD78 /* Message.swift */; };
+		AEACE2DD1FB323CA00DCDD78 /* ChatViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEACE2DC1FB323CA00DCDD78 /* ChatViewController.swift */; };
+		AEACE2DF1FB3246400DCDD78 /* Message.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEACE2DE1FB3246400DCDD78 /* Message.swift */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
@@ -201,7 +202,8 @@
 		8DE110C607A0E4485C43B5FA /* Pods-deltachat-ios.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-deltachat-ios.debug.xcconfig"; path = "Pods/Target Support Files/Pods-deltachat-ios/Pods-deltachat-ios.debug.xcconfig"; sourceTree = "<group>"; };
 		A8615D4600859851E53CAA9C /* Pods-deltachat-ios.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-deltachat-ios.release.xcconfig"; path = "Pods/Target Support Files/Pods-deltachat-ios/Pods-deltachat-ios.release.xcconfig"; sourceTree = "<group>"; };
 		AE0D26FC1FB1FE88002FAFCE /* ChatListController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatListController.swift; sourceTree = "<group>"; };
-		AEACE2D51FB3219300DCDD78 /* Message.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Message.swift; sourceTree = "<group>"; };
+		AEACE2DC1FB323CA00DCDD78 /* ChatViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatViewController.swift; sourceTree = "<group>"; };
+		AEACE2DE1FB3246400DCDD78 /* Message.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Message.swift; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -326,6 +328,7 @@
 		7A9FB1421FB061E2001FEA36 /* deltachat-ios */ = {
 			isa = PBXGroup;
 			children = (
+				AEACE2DE1FB3246400DCDD78 /* Message.swift */,
 				7A9FB15B1FB07364001FEA36 /* libraries */,
 				7A9FB1431FB061E2001FEA36 /* AppDelegate.swift */,
 				7A451DAF1FB1F84900177250 /* AppCoordinator.swift */,
@@ -337,7 +340,7 @@
 				7A451D921FB1B1DB00177250 /* wrapper.c */,
 				7A451D931FB1B1DB00177250 /* wrapper.h */,
 				AE0D26FC1FB1FE88002FAFCE /* ChatListController.swift */,
-				AEACE2D51FB3219300DCDD78 /* Message.swift */,
+				AEACE2DC1FB323CA00DCDD78 /* ChatViewController.swift */,
 			);
 			path = "deltachat-ios";
 			sourceTree = "<group>";
@@ -598,13 +601,13 @@
 				7A79236E1FB0A2C800BC2DE5 /* misc.c in Sources */,
 				7A9FB5561FB08557001FEA36 /* mrtools.c in Sources */,
 				7A7923731FB0A2C800BC2DE5 /* signature.c in Sources */,
-				AEACE2D61FB3219300DCDD78 /* Message.swift in Sources */,
 				7A9FB5541FB08557001FEA36 /* mrsqlite3.c in Sources */,
 				7A9FB5511FB08557001FEA36 /* mrsaxparser.c in Sources */,
 				7A9FB54B1FB08557001FEA36 /* mrmimeparser.c in Sources */,
 				7A9FB5481FB08557001FEA36 /* mrmailbox_log.c in Sources */,
 				7A79236B1FB0A2C800BC2DE5 /* create.c in Sources */,
 				7A9FB5421FB08557001FEA36 /* mrkeyring.c in Sources */,
+				AEACE2DF1FB3246400DCDD78 /* Message.swift in Sources */,
 				7A79236D1FB0A2C800BC2DE5 /* keyring.c in Sources */,
 				7A7923721FB0A2C800BC2DE5 /* reader.c in Sources */,
 				7A9FB54F1FB08557001FEA36 /* mrpgp.c in Sources */,
@@ -617,6 +620,7 @@
 				AE0D26FD1FB1FE88002FAFCE /* ChatListController.swift in Sources */,
 				7A9FB1461FB061E2001FEA36 /* ViewController.swift in Sources */,
 				7A9FB54E1FB08557001FEA36 /* mrparam.c in Sources */,
+				AEACE2DD1FB323CA00DCDD78 /* ChatViewController.swift in Sources */,
 				7A7923741FB0A2C800BC2DE5 /* symmetric.c in Sources */,
 				7A9FB54C1FB08557001FEA36 /* mrmsg.c in Sources */,
 				7A9FB5521FB08557001FEA36 /* mrsimplify.c in Sources */,

+ 1 - 1
deltachat-ios/ChatListController.swift

@@ -41,7 +41,7 @@ class ChatListController: UIViewController {
 
 extension ChatListController: ChatPresenter {
     func displayChat(index: Int) {
-        let chatVC = UIViewController()
+        let chatVC = ChatViewController()
         chatVC.title = chats[index].0
         self.navigationController?.pushViewController(chatVC, animated: true)
     }

+ 35 - 0
deltachat-ios/ChatViewController.swift

@@ -0,0 +1,35 @@
+//
+//  ChatViewController.swift
+//  deltachat-ios
+//
+//  Created by Bastian van de Wetering on 08.11.17.
+//  Copyright © 2017 Jonas Reinsch. All rights reserved.
+//
+
+import UIKit
+
+class ChatViewController: UIViewController {
+
+    override func viewDidLoad() {
+        super.viewDidLoad()
+
+        // Do any additional setup after loading the view.
+    }
+
+    override func didReceiveMemoryWarning() {
+        super.didReceiveMemoryWarning()
+        // Dispose of any resources that can be recreated.
+    }
+    
+
+    /*
+    // MARK: - Navigation
+
+    // In a storyboard-based application, you will often want to do a little preparation before navigation
+    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
+        // Get the new view controller using segue.destinationViewController.
+        // Pass the selected object to the new view controller.
+    }
+    */
+
+}