---
title: ignoresSearchSuggestionsForSearchBarPlacementStacked
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchcontroller/ignoressearchsuggestionsforsearchbarplacementstacked
---

# ignoresSearchSuggestionsForSearchBarPlacementStacked

A Boolean value you use to specify whether the search controller prevents search suggestions from displaying for a stacked search bar.

## Declaration

```swift
var ignoresSearchSuggestionsForSearchBarPlacementStacked: Bool { get set }
```

## Discussion

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.

## See Also

### Configuring the search interface

- [obscuresBackgroundDuringPresentation](uikit/uisearchcontroller/obscuresbackgroundduringpresentation.md)
- [hidesNavigationBarDuringPresentation](uikit/uisearchcontroller/hidesnavigationbarduringpresentation.md)
- [automaticallyShowsCancelButton](uikit/uisearchcontroller/automaticallyshowscancelbutton.md)
- [automaticallyShowsSearchResultsController](uikit/uisearchcontroller/automaticallyshowssearchresultscontroller.md)
- [showsSearchResultsController](uikit/uisearchcontroller/showssearchresultscontroller.md)
- [searchBarPlacement](uikit/uisearchcontroller/searchbarplacement.md)
- [automaticallyShowsScopeBar](uikit/uisearchcontroller/automaticallyshowsscopebar.md)
- [scopeBarActivation](uikit/uisearchcontroller/scopebaractivation-swift.property.md)
- [UISearchController.ScopeBarActivation](uikit/uisearchcontroller/scopebaractivation-swift.enum.md)
