Browse Source

tweak back-button

use a simple string instead of a view:
- when using a view, that is always displayed completely,
  which, in turn, results in longer chat-title being moved out center.
- when using a string,
  longer titles result in the string being limited to an back-icon only,
  titles stay centered that way (and there is more room for longer titles)
B. Petersen 4 years ago
parent
commit
f1f40e61c1
1 changed files with 1 additions and 3 deletions
  1. 1 3
      deltachat-ios/Controller/ChatListController.swift

+ 1 - 3
deltachat-ios/Controller/ChatListController.swift

@@ -169,9 +169,7 @@ class ChatListController: UITableViewController {
     // MARK: - setup
     private func setupSubviews() {
         emptySearchStateLabel.addCenteredTo(parentView: view)
-        let backButton = UIBarButtonItem()
-        backButton.title = String.localized("pref_chats")
-        navigationItem.backBarButtonItem = backButton
+        navigationItem.backButtonTitle = String.localized("pref_chats")
     }
 
     @objc