On iPad with iOS 16 searchController displaying on the right side. Like this:
How can I return the searchController's "default" view? Like this:
In iOS 16, there is a new property preferredSearchBarPlacement for the navigationItem, you can change it to .stacked to make it appear like previous iOS:
preferredSearchBarPlacement
navigationItem
.stacked
if #available(iOS 16.0, *) { navigationItem.preferredSearchBarPlacement = .stacked }
Copyright © 2021 Jogjafile Inc.
In iOS 16, there is a new property
preferredSearchBarPlacementfor thenavigationItem, you can change it to.stackedto make it appear like previous iOS: