updateSearchResults(for:)
Asks the object to update the search results for a specified controller.
Declaration
func updateSearchResults(for searchController: UISearchController)Parameters
- searchController:
The Uisearchcontroller object used as the search bar.
Discussion
The system calls this method when the search bar becomes the first responder or the search bar’s text changes. Perform any required filtering and updating of search results or suggestions inside of this method.