Instance Method

completerDidUpdateResults(_:)

Called when the specified search completer updates its array of search completions.

Declaration

optional func completerDidUpdateResults(_ completer: MKLocalSearchCompleter)

Parameters

completer

The search completer object whose results were updated.

Discussion

After receiving results from a query, the search completer updates its results property with the new MKLocalSearchCompletion objects and calls this method. Use this method to update your app’s interface based on the new search results. For example, you might update a table that you use to display search results to the user.

See Also

Getting the Search Results

func completer(MKLocalSearchCompleter, didFailWithError: Error)

Called when the specified search completer is unable to generate a list of search results.