Procházet zdrojové kódy

Renamed ChatViewController to ChatListController

Bastian van de Wetering před 7 roky
rodič
revize
f95fc99da8

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

@@ -61,7 +61,7 @@
 		7A9FB5561FB08557001FEA36 /* mrtools.c in Sources */ = {isa = PBXBuildFile; fileRef = 7A9FB5331FB08557001FEA36 /* mrtools.c */; };
 		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 /* ChatViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE0D26FC1FB1FE88002FAFCE /* ChatViewController.swift */; };
+		AE0D26FD1FB1FE88002FAFCE /* ChatListController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE0D26FC1FB1FE88002FAFCE /* ChatListController.swift */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
@@ -199,7 +199,7 @@
 		7A9FB5361FB08557001FEA36 /* stress.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = stress.h; sourceTree = "<group>"; };
 		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 /* ChatViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatViewController.swift; sourceTree = "<group>"; };
+		AE0D26FC1FB1FE88002FAFCE /* ChatListController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatListController.swift; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -334,7 +334,7 @@
 				7A9FB1561FB06540001FEA36 /* deltachat-ios-Bridging-Header.h */,
 				7A451D921FB1B1DB00177250 /* wrapper.c */,
 				7A451D931FB1B1DB00177250 /* wrapper.h */,
-				AE0D26FC1FB1FE88002FAFCE /* ChatViewController.swift */,
+				AE0D26FC1FB1FE88002FAFCE /* ChatListController.swift */,
 			);
 			path = "deltachat-ios";
 			sourceTree = "<group>";
@@ -607,7 +607,7 @@
 				7A7923751FB0A2C800BC2DE5 /* validate.c in Sources */,
 				7A9FB5551FB08557001FEA36 /* mrstock.c in Sources */,
 				7A9FB53B1FB08557001FEA36 /* mrchatlist.c in Sources */,
-				AE0D26FD1FB1FE88002FAFCE /* ChatViewController.swift in Sources */,
+				AE0D26FD1FB1FE88002FAFCE /* ChatListController.swift in Sources */,
 				7A9FB1461FB061E2001FEA36 /* ViewController.swift in Sources */,
 				7A9FB54E1FB08557001FEA36 /* mrparam.c in Sources */,
 				7A7923741FB0A2C800BC2DE5 /* symmetric.c in Sources */,

+ 1 - 1
deltachat-ios/AppCoordinator.swift

@@ -14,7 +14,7 @@ class AppCoordinator {
         let contactViewController = UIViewController()
         contactViewController.view.backgroundColor = UIColor.red
         
-        let chatViewController = ChatViewController()
+        let chatViewController = ChatListController()
         let chatNavigationController = UINavigationController(rootViewController: chatViewController)
         
         chatViewController.view.backgroundColor = UIColor.green

+ 3 - 3
deltachat-ios/ChatViewController.swift → deltachat-ios/ChatListController.swift

@@ -1,5 +1,5 @@
 //
-//  ChatViewController.swift
+//  ChatListController.swift
 //  deltachat-ios
 //
 //  Created by Bastian van de Wetering on 07.11.17.
@@ -8,7 +8,7 @@
 
 import UIKit
 
-class ChatViewController: UIViewController {
+class ChatListController: UIViewController {
 
     let chatTable = UITableView()
     var chats: [String] = ["Eins", "Zwei", "Drei"]
@@ -40,7 +40,7 @@ class ChatViewController: UIViewController {
     }
 }
 
-extension ChatViewController: ChatPresenter {
+extension ChatListController: ChatPresenter {
     func displayChat(index: Int) {
         let chatVC = UIViewController()
         chatVC.title = chats[index]