diff options
author | Zoia Pribytkova <niakris90@gmail.com> | 2019-03-13 19:19:04 +0300 |
---|---|---|
committer | Zoia <niakris90@gmail.com> | 2019-03-18 18:34:33 +0300 |
commit | 0c7b71fa9875c86421b30fcdcdb6b568f3aeac16 (patch) | |
tree | babd157bbd524689d777171d31312421edcf5049 /iphone | |
parent | 9babc749b9b18e961c8fa8f0d018bc529ab30417 (diff) |
[iOS] Added appropriate keyboardDismissMode for the search tabs
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/UI/Search/Tabs/CategoriesTab/SearchCategoriesViewController.swift | 1 | ||||
-rw-r--r-- | iphone/Maps/UI/Search/Tabs/HistoryTab/SearchHistoryViewController.swift | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/iphone/Maps/UI/Search/Tabs/CategoriesTab/SearchCategoriesViewController.swift b/iphone/Maps/UI/Search/Tabs/CategoriesTab/SearchCategoriesViewController.swift index f920c99a26..5ddbb9ab74 100644 --- a/iphone/Maps/UI/Search/Tabs/CategoriesTab/SearchCategoriesViewController.swift +++ b/iphone/Maps/UI/Search/Tabs/CategoriesTab/SearchCategoriesViewController.swift @@ -29,6 +29,7 @@ final class SearchCategoriesViewController: MWMTableViewController { tableView.register(cellClass: SearchCategoryCell.self) tableView.register(cellClass: SearchBannerCell.self) tableView.separatorStyle = .none + tableView.keyboardDismissMode = .onDrag } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { diff --git a/iphone/Maps/UI/Search/Tabs/HistoryTab/SearchHistoryViewController.swift b/iphone/Maps/UI/Search/Tabs/HistoryTab/SearchHistoryViewController.swift index 4f77484448..71ac0f4e1a 100644 --- a/iphone/Maps/UI/Search/Tabs/HistoryTab/SearchHistoryViewController.swift +++ b/iphone/Maps/UI/Search/Tabs/HistoryTab/SearchHistoryViewController.swift @@ -33,6 +33,7 @@ final class SearchHistoryViewController: MWMViewController { let nib = UINib(nibName: "SearchHistoryClearCell", bundle: nil) tableView.register(nib, forCellReuseIdentifier: SearchHistoryViewController.clearCellIdentifier) } + tableView.keyboardDismissMode = .onDrag } func showNoResultsView() { |