Contents

searchController

The search controller to integrate into your navigation interface.

Declaration

var searchController: UISearchController? { get set }

Discussion

When a view controller in your navigation interface supports search, assign the corresponding search controller to this property. The navigation controller integrates the search bar from your search controller into the navigation bar interface, presenting a single bar for both search and navigation. Use the hidesSearchBarWhenScrolling property to control the visibility of the search bar when scrolling.

See Also

Integrating search into your interface