Instance Property

accessibilityCustomRotors

An array of custom rotors for the current element.

Declaration

var accessibilityCustomRotors: [UIAccessibilityCustomRotor]? { get set }

Discussion

The default value for this array is nil.

Assistive technologies, like VoiceOver, use a context-sensitive function that provides more power and flexibility to perform actions and searches. VoiceOver accesses this functionality through the VoiceOver rotor.

A current element can expose an array of custom rotors that a user can activate to search for other instances of similar elements. The same applies to ranges within elements.

For example, in a magazine app, you can create a custom rotor to allow the user to find the next link or heading within an article. Alternatively, in a document editor, you can help the user find the next misspelled word by returning the next range that contains a misspelled word.

See Also

Configuring Behavior

Accessibility Traits

Tell an assistive application how an accessibility element behaves or should be treated by setting these accessibility traits

var accessibilityTraits: UIAccessibilityTraits

The combination of accessibility traits that best characterize the accessibility element.

struct UIAccessibilityTraits

A mask that contains the OR combination of the accessibility traits that best characterize an accessibility element.

var accessibilityElementsHidden: Bool

A Boolean value indicating whether the accessibility elements contained within this accessibility element are hidden.

var accessibilityNotifiesWhenDestroyed: Bool

A Boolean value that indicates whether a custom accessibility object sends a notification when its corresponding UI element is destroyed.

var accessibilityRespondsToUserInteraction: Bool

A Boolean value indicating whether the element performs an action based on user interaction.

var accessibilityViewIsModal: Bool

A Boolean value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver.

var shouldGroupAccessibilityChildren: Bool

A Boolean value indicating whether VoiceOver should group together the elements that are children of the receiver, regardless of their positions on the screen.