rects(forCharacterRange:)
An array containing the located text in the content view’s coordinate system.
Declaration
optional func rects(forCharacterRange range: NSRange) -> [NSValue]?Parameters
- range:
The range of the located character string.
Return Value
An array containing the rectangles containing the located text in the content view object’s coordinate system and return that array. The rectangles are return wrapped as NSValue objects.
Discussion
The text finder uses this method to determine the location to display the find indicator.
The given range is guaranteed not to overlap multiple views.