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

indent profile cells better

Alla Reinsch преди 7 години
родител
ревизия
c41a0ca6cc
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      deltachat-ios/ContactProfileViewController.swift

+ 4 - 2
deltachat-ios/ContactProfileViewController.swift

@@ -71,10 +71,12 @@ class ContactProfileViewController: UITableViewController {
         }
         let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
 
+        let settingsImage = #imageLiteral(resourceName: "baseline_settings_black_18pt").withRenderingMode(.alwaysTemplate)
+        cell.imageView?.image = settingsImage
+        cell.imageView?.tintColor = UIColor.clear
+
         if row == 1 {
-            let settingsImage = #imageLiteral(resourceName: "baseline_settings_black_18pt").withRenderingMode(.alwaysTemplate)
             cell.textLabel?.text = "Settings"
-            cell.imageView?.image = settingsImage
             cell.imageView?.tintColor = UIColor.gray
         }
         if row == 2 {