---
title: searchResultsController
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchcontroller/searchresultscontroller
---

# searchResultsController

The view controller that displays the results of the search.

## Declaration

```swift
var searchResultsController: UIViewController? { get }
```

## Discussion

Discussion When the user enters text in the search bar, the search controller displays this view controller immediately and without any animations. You’re responsible for passing the search results to this view controller so that they can be displayed. You do this using the object in the searchResultsUpdater property. When the value of this property is nil, the search controller doesn’t present a separate view controller for the search results. Instead, you should display the results using the original view controller containing the search bar and searchable contents.

## See Also

### Managing the search results

- [searchBar](uikit/uisearchcontroller/searchbar.md)
- [searchResultsUpdater](uikit/uisearchcontroller/searchresultsupdater.md)
- [isActive](uikit/uisearchcontroller/isactive.md)
