Contents

invalidateFoundRange(_:document:)

Removes a text range from the set of matches.

Declaration

func invalidateFoundRange(_ range: UITextRange, document: DocumentIdentifier)

Parameters

  • range:

    The text range to remove from the set of matches.

  • document:

    A string that uniquely identifies the document containing the text range. Nil when searching a single document.

Discussion

Call this method to invalidate a text range when removing or changing text in the document. This causes the system find panel to update it’s current state, and if the range is the highlighted range, the find panel advances to the next found result.

See Also

Tracking search results