Преглед на файлове

use cells with disclosureIndicator for gallery and documents

cyberta преди 5 години
родител
ревизия
8345ad0b19
променени са 2 файла, в които са добавени 16 реда и са изтрити 20 реда
  1. 8 10
      deltachat-ios/Controller/ContactDetailViewController.swift
  2. 8 10
      deltachat-ios/Controller/GroupChatDetailViewController.swift

+ 8 - 10
deltachat-ios/Controller/ContactDetailViewController.swift

@@ -49,19 +49,17 @@ class ContactDetailViewController: UITableViewController {
         return cell
     }()
 
-    private lazy var galleryCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("gallery")
-        cell.actionColor = SystemColor.blue.uiColor
-        cell.selectionStyle = .none
+    private lazy var galleryCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("gallery")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()
 
-    private lazy var documentsCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("documents")
-        cell.actionColor = SystemColor.blue.uiColor
-        cell.selectionStyle = .none
+    private lazy var documentsCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("documents")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()
 

+ 8 - 10
deltachat-ios/Controller/GroupChatDetailViewController.swift

@@ -93,19 +93,17 @@ class GroupChatDetailViewController: UIViewController {
         return cell
     }()
 
-    private lazy var galleryCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("gallery")
-        cell.actionColor = UIColor.systemBlue
-        cell.selectionStyle = .none
+    private lazy var galleryCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("gallery")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()
 
-    private lazy var documentsCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("documents")
-        cell.actionColor = UIColor.systemBlue
-        cell.selectionStyle = .none
+    private lazy var documentsCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("documents")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()