A view controller that manages the presentation of search results in your interface.
- iOS 9.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
Although you can present a search controller object modally, you should never push one onto a navigation controller’s stack or use one as a child of another container view controller. Instead, embed an instance of this class and let it manage the presentation of the search controller’s content.