From 7f1577f4a45b2a47f27d5b9328b55265bb7493e9 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 10 Jun 2022 23:36:53 -0400 Subject: [PATCH] Always used stacked search field in instance selector --- .../Onboarding/InstanceSelectorTableViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tusker/Screens/Onboarding/InstanceSelectorTableViewController.swift b/Tusker/Screens/Onboarding/InstanceSelectorTableViewController.swift index 2c3d082c..db87fe76 100644 --- a/Tusker/Screens/Onboarding/InstanceSelectorTableViewController.swift +++ b/Tusker/Screens/Onboarding/InstanceSelectorTableViewController.swift @@ -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