Initializes and returns a search container view controller with the specified search controller object.
SDKs
- iOS 9.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
init(searchController: UISearch Controller)
Parameters
searchController
The search controller managing the search results. This parameter must not be
nil
.
Return Value
An initialized search container view controller.
Discussion
After initializing the search container view controller, embed it in your container view controller normally.