Steve Harrison
Steve Harrison

Reputation: 182

What is the Accessibility Trait, "User Interaction Enabled?" (Xcode Interface Builder)

When configuring elements within a view (.xib) for accessibility, we are given several options in the Accessibility Inspector. I understand that selecting options in the Traits section enables the user to "tab" or "swipe" through elements of a certain type when using VoiceOver. However, I'm not sure what effect selecting (or deselecting) the "User Interaction Enabled" option has.

For example, a static label has this trait enabled by default. I've enabled this element for Accessibility, populated the label and hint, and selected the Static Text and Header traits. Aside from reading the text, the user will not need to interact with this element, so I have deselected that option.

I have read Apple's "Accessibility Programming Guide for iOS;" however, I'm not able to find any information regarding this trait.

enter image description here

Upvotes: 3

Views: 3418

Answers (2)

DroneLord
DroneLord

Reputation: 63

Apple goes into some detail about it here: Apple Developer

Upvotes: 0

LorenzOliveto
LorenzOliveto

Reputation: 7936

It's the equivalent of UIAccessibilityTraitNotEnabled.

It's usually used for buttons or UIControls so when they are disabled VoiceOver tells the user that the element is dimmed or disabled.

Upvotes: 5

Related Questions