searchResults
An array of search results.
Declaration
var searchResults: [Any]? { get set }Discussion
The delegate updates this property with the results of the search. For each object in searchResults, the search view controller uses the searchResultKeyPath property to find the description of the object to display in search view.
When a user chooses an item in the search view’s results list, the search view controller calls widgetSearch(_:resultSelected:) on its delegate. If the widget presented the search view using presentViewControllerInWidget:, this action causes the search view to be dismissed by dismissViewController:.