Always used stacked search field in instance selector

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

View File

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