Structure

UIAccessibilityTraits

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

Declaration

struct UIAccessibilityTraits

Topics

Initializer

init(rawValue: UInt64)

Initializes a new accessibility traits structure using a unsigned integer.

Constants

static var adjustable: UIAccessibilityTraits

The accessibility element allows continuous adjustment through a range of values.

static var allowsDirectInteraction: UIAccessibilityTraits

The accessibility element allows direct touch interaction for VoiceOver users.

static var button: UIAccessibilityTraits

The accessibility element should be treated as a button.

static var causesPageTurn: UIAccessibilityTraits

The accessibility element should cause an automatic page turn when VoiceOver finishes reading the text within it.

static var header: UIAccessibilityTraits

The accessibility element is a header that divides content into sections, such as the title of a navigation bar.

static var image: UIAccessibilityTraits

The accessibility element should be treated as an image.

static var keyboardKey: UIAccessibilityTraits

The accessibility element behaves as a keyboard key.

static var link: UIAccessibilityTraits

The accessibility element should be treated as a link.

static var none: UIAccessibilityTraits

The accessibility element has no traits.

static var notEnabled: UIAccessibilityTraits

The accessibility element is not enabled and does not respond to user interaction.

static var playsSound: UIAccessibilityTraits

The accessibility element plays its own sound when activated.

static var searchField: UIAccessibilityTraits

The accessibility element should be treated as a search field.

static var selected: UIAccessibilityTraits

The accessibility element is currently selected.

static var startsMediaSession: UIAccessibilityTraits

The accessibility element starts a media session when it is activated.

static var staticText: UIAccessibilityTraits

The accessibility element should be treated as static text that cannot change.

static var summaryElement: UIAccessibilityTraits

The accessibility element provides summary information when the application starts.

static var updatesFrequently: UIAccessibilityTraits

The accessibility element frequently updates its label or value.

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.

var accessibilityCustomRotors: [UIAccessibilityCustomRotor]?

An array of custom rotors for the current 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.