Instance Method


Cancels an in-progress search operation.


func cancel()


If a search operation is currently in progress, this method attempts to cancels it. If cancellation is successful, the search completer does not notify its delegate. If no search operation is in progress, this method does nothing.

See Also

Cancelling the Query

var isSearching: Bool

A Boolean value indicating whether a search operation is in progress.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software