scrollRangeToVisible(_:inDocument:)
Scrolls to the containing view to make the text range visible.
Declaration
func scrollRangeToVisible(_ range: UITextRange, inDocument: Self.DocumentIdentifier?)Parameters
- range:
The text range to scroll to.
- inDocument:
A string that uniquely identifies the document containing the text range.
Nilwhen searching a single document.
Discussion
If the seachable object supports scrolling, use this method to implement scrolling your view to make the highlighted text range visible.