The NSAccessibilityStaticText role-based protocol declares the minimum interface required for an accessibility element to act as static text. Static text elements are typically used for short pieces of text, such as headers or labels. For longer blocks of text, use the NSAccessibilityNavigableStaticText protocol. You can further enhance the adopting element by implementing any of the information properties or action methods declared in the NSAccessibility protocol.



Accessibility Methods

func accessibilityAttributedString(for: NSRange)

Returns the attributed substring for the specified range of characters.

func accessibilityValue()

Returns the text displayed by the element.

func accessibilityVisibleCharacterRange()

Returns the range of visible characters in the document.