Search code examples
iosxcodeinterface-builderaccessibilityvoiceover

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


Solution

  • 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.