Always use stacked search bar placement on iPadOS 16
This commit is contained in:
parent
6ef8c92d09
commit
46fbbdc99a
|
@ -45,6 +45,9 @@ class SearchViewController: UIViewController {
|
|||
|
||||
navigationItem.searchController = searchController
|
||||
navigationItem.hidesSearchBarWhenScrolling = false
|
||||
if #available(iOS 16.0, *) {
|
||||
navigationItem.preferredSearchBarPlacement = .stacked
|
||||
}
|
||||
}
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
|
|
Loading…
Reference in New Issue