Instance Property


The presented state of the search interface.


var isActive: Bool { get set }


When the user taps in the search field of a managed search bar, the search controller automatically displays the search results controller. Usually, you get the value of this property to determine whether the search results are displayed. However, you can set this property to true to force the search interface to appear, even if the user has not tapped in the search field.

The default value of this property is false.

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 searchResultsController: UIViewController?

The view controller that displays the results of the search.