Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/iphone
diff options
context:
space:
mode:
authorZoia Pribytkova <niakris90@gmail.com>2019-03-13 19:19:04 +0300
committerZoia <niakris90@gmail.com>2019-03-18 18:34:33 +0300
commit0c7b71fa9875c86421b30fcdcdb6b568f3aeac16 (patch)
treebabd157bbd524689d777171d31312421edcf5049 /iphone
parent9babc749b9b18e961c8fa8f0d018bc529ab30417 (diff)
[iOS] Added appropriate keyboardDismissMode for the search tabs
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/UI/Search/Tabs/CategoriesTab/SearchCategoriesViewController.swift1
-rw-r--r--iphone/Maps/UI/Search/Tabs/HistoryTab/SearchHistoryViewController.swift1
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() {