Pārlūkot izejas kodu

scroll to top in quitSearch

nayooti 5 gadi atpakaļ
vecāks
revīzija
15bff0f1bd
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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