MKLocalSearch.CompletionHandler
A completion handler block for a search operation.
Declaration
typealias CompletionHandler = (MKLocalSearch.Response?, (any Error)?) -> VoidDiscussion
This block takes two parameters:
The
responseparameter contains the search results. If an error occurs, this parameter isniland the framework provides an appropriate error object in theerrorparameter.The
errorparameter isnilif the search is successful. If an error occurs during the operation, the framework sets this parameter to an appropriate error object.
This block has no return value.