Explorar o código

scroll to top in quitSearch

nayooti %!s(int64=5) %!d(string=hai) anos
pai
achega
15bff0f1bd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      deltachat-ios/Controller/ChatListController.swift

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

@@ -150,7 +150,9 @@ class ChatListController: UITableViewController {
     private func quitSearch(animated: Bool) {
         searchController.searchBar.text = nil
         self.viewModel.endSearch()
-        searchController.dismiss(animated: animated)
+        searchController.dismiss(animated: animated) {
+            self.tableView.scrollToTop()
+        }
     }
 
     // MARK: - UITableViewDelegate + UITableViewDatasource