<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISearchController/ignoresSearchSuggestionsForSearchBarPlacementStacked",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISearchController(py)ignoresSearchSuggestionsForSearchBarPlacementStacked"
  },
  "title" : "ignoresSearchSuggestionsForSearchBarPlacementStacked"
}
-->

# ignoresSearchSuggestionsForSearchBarPlacementStacked

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

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

## Discussion

Defaults to <doc://com.apple.documentation/documentation/Swift/false>. To prevent the search controller from creating and presenting a search suggestions view controller when the [`searchBarPlacement`](/documentation/UIKit/UISearchController/searchBarPlacement) is [`UINavigationItem.SearchBarPlacement.stacked`](/documentation/UIKit/UINavigationItem/SearchBarPlacement-swift.enum/stacked), set to <doc://com.apple.documentation/documentation/Swift/true> when you create the search controller.

If you set this value to <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/false>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)