Contents

updateSearchResults(for:)

Asks the object to update the search results for a specified controller.

Declaration

func updateSearchResults(for searchController: UISearchController)

Parameters

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.

See Also

Updating the search bar