Instance Property

accessibilityElementsHidden

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

Declaration

var accessibilityElementsHidden: Bool { get set }

Discussion

The default value for this property is false. You might use this property to hide views that are covered by the arrival of a new view. In this case, the hidden views might remain visible onscreen, but they are not the focus of the user’s actions.

You might also use this property to hide a transient view that VoiceOver users don’t need to notice. For example, VoiceOver doesn’t need to describe the translucent view that appears when users adjust the volume on their devices, because the aural feedback of this action is sufficient.

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 accessibilityCustomRotors: [UIAccessibilityCustomRotor]?

An array of custom rotors for the current element.

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.