kAXSelectedTextRangeAttribute

Indicates the range of characters (not bytes) that defines the currently selected text within this accessibility object. This attribute is required for all accessibility objects that represent editable text elements.

Declaration

var kAXSelectedTextRangeAttribute: String { get }