Always used stacked search field in instance selector

This commit is contained in:
Shadowfacts 2022-06-10 23:36:53 -04:00
parent e52f032d01
commit 7f1577f4a4
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ class InstanceSelectorTableViewController: UITableViewController {
searchController.searchBar.searchTextField.autocapitalizationType = .none searchController.searchBar.searchTextField.autocapitalizationType = .none
navigationItem.searchController = searchController navigationItem.searchController = searchController
navigationItem.hidesSearchBarWhenScrolling = false navigationItem.hidesSearchBarWhenScrolling = false
if #available(iOS 16.0, *) {
navigationItem.preferredSearchBarPlacement = .stacked
}
definesPresentationContext = true definesPresentationContext = true
urlHandler = urlCheckerSubject urlHandler = urlCheckerSubject