Contents

accessibilityRange(for:)

Returns the range of characters for the glyph that includes the specified character.

Declaration

func accessibilityRange(for index: Int) -> NSRange

Parameters

  • index:

    The specified character.

Return Value

The range of characters for the glyph.

Discussion

This value always includes the specified character but may include additional characters if that character is part of a multicharacter glyph.

See Also

Configuring text elements