selectionRects(for:)
Returns an array of selection rectangles corresponding to the given text range.
Declaration
func selectionRects(for range: UITextRange) -> [UITextSelectionRect]Parameters
- range:
The range of text for which to return selection rectangles.