---
title: automaticallyShowsSearchResultsController
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchcontroller/automaticallyshowssearchresultscontroller
---

# automaticallyShowsSearchResultsController

A Boolean indicating whether the search controller manages the visibility of its results controller.

## Declaration

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

## Discussion

Discussion The default value for this property is true. When it’s true, UISearchController automatically shows its results controller based on the contents of its text property. If you set showsSearchResultsController, this property becomes false.

## See Also

### Configuring the search interface

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