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

# automaticallyShowsSearchResultsController

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

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

## Discussion

The default value for this property is <doc://com.apple.documentation/documentation/Swift/true>. When it’s <doc://com.apple.documentation/documentation/Swift/true>, [`UISearchController`](/documentation/UIKit/UISearchController) automatically shows its results controller based on the contents of its text property. If you set [`showsSearchResultsController`](/documentation/UIKit/UISearchController/showsSearchResultsController), this property becomes <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)