The search controller to integrate into your navigation interface.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
var searchController: UISearch Controller? { 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 hides
property to control the visibility of the search bar when scrolling.