searchResultsController
The view controller that displays the results of the search.
Declaration
var searchResultsController: UIViewController? { get }Discussion
When the user enters text in the search bar, the search controller displays this view controller immediately and without any animations. You’re responsible for passing the search results to this view controller so that they can be displayed. You do this using the object in the searchResultsUpdater property.
When the value of this property is nil, the search controller doesn’t present a separate view controller for the search results. Instead, you should display the results using the original view controller containing the search bar and searchable contents.