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.
Nilwhen 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.