Instance Property


The view controller that displays the results of the search.


var searchResultsController: UIViewController? { get }


When the user enters text in the search bar, the search controller displays this view controller immediately and without any animations. You are 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 does not 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

var searchBar: UISearchBar

The search bar to install in your interface.

var searchResultsUpdater: UISearchResultsUpdating?

The object responsible for updating the contents of the search results controller.

var isActive: Bool

The presented state of the search interface.