preferredSearchBarPlacement
The preferred placement of the search bar in the navigation bar.
Declaration
var preferredSearchBarPlacement: UINavigationItem.SearchBarPlacement { get set }Mentioned in
Discussion
Use this property to specify the search bar placement. If the value of the property is UINavigationItem.SearchBarPlacement.automatic, use the searchBarPlacement property to determine the actual placement. The default value of this property is UINavigationItem.SearchBarPlacement.automatic.
This property only applies when the navigation item has a searchController.