瀏覽代碼

tweak disclosureIndicator

B. Petersen 5 年之前
父節點
當前提交
5f25b8e63f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      deltachat-ios/Controller/AccountSetupController.swift

+ 4 - 0
deltachat-ios/Controller/AccountSetupController.swift

@@ -509,6 +509,10 @@ class AccountSetupController: UITableViewController {
         var advancedIndexPaths: [IndexPath] = advancedSectionCells.indices.map { IndexPath(row: $0, section: advancedSectionIndex) }
         advancedIndexPaths.removeFirst() // do not touch the first item that is the switch itself
 
+        // on expansion, replace the disclosureIndicator by an n-dash
+        advancedShowCell.accessoryType = willShow ? .none : .disclosureIndicator
+        advancedShowCell.detailTextLabel?.text = willShow ? "\u{2013}" : nil
+
         advancedSectionShowing = willShow // set flag before delete/insert, because cellForRowAt will be triggered and uses this flag
 
         if willShow {