Contents

accessibilityFrame(for:)

Returns the rectangle that encloses the specified range of characters.

Declaration

func accessibilityFrame(for range: NSRange) -> NSRect

Parameters

  • range:

    The range of characters.

Return Value

The rectangle that encloses the specified characters.

Discussion

If the range crosses a line boundary, the returned rectangle fully encloses all the lines of characters.

See Also

Configuring text elements