ignoresSearchSuggestionsForSearchBarPlacementStacked
A Boolean value you use to specify whether the search controller prevents search suggestions from displaying for a stacked search bar.
Declaration
var ignoresSearchSuggestionsForSearchBarPlacementStacked: Bool { get set }Discussion
Defaults to false. To prevent the search controller from creating and presenting a search suggestions view controller when the searchBarPlacement is UINavigationItem.SearchBarPlacement.stacked, set to true when you create the search controller.
If you set this value to true after the search controller has already displayed search suggestions, it hides the search suggestions view controller and won’t display it again until you set the value to false.