Questions tagged [uiaccessibility]

UIAccessibility is an informal protocol in UIKit that provides accessibility information about user interface elements. This information is used by VoiceOver and other assistive technologies to help users with disabilities interact with your application. All of the standard views and controls in UIKit implement UIAccessibility, so applications are accessible by default.

This tag is for any questions about making iOS apps more accessible to users via the UIAccessibility protocols.

By default, all objects that inherit from UIView adhere to this informal protocol. In fact, for many views with a low level of customization, iOS is clever enough to set the accessibility attributes automatically. For higher levels of customization, though, the following fields can be set manually (from the Apple docs):

  • Label. A short, localized word or phrase that succinctly describes the control or view, but does not identify the element’s type. Examples are “Add” or “Play.”
  • Traits. A combination of one or more individual traits, each of which describes a single aspect of an element’s state, behavior, or usage. For example, an element that behaves like a keyboard key and that is currently selected can be characterized by the combination of the Keyboard Key and Selected traits.
  • Hint. A brief, localized phrase that describes the results of an action on an element. Examples are “Adds a title” or “Opens the shopping list.”
  • Frame. The frame of the element in screen coordinates, which is given by the CGRect structure that specifies an element’s screen location and size.
  • Value. The current value of an element, when the value is not represented by the label. For example, the label for a slider might be “Speed,” but its current value might be “50%.”

When a VoiceOver user taps a view (or a Switch Control user scans over it), that view's properties are read out loud. These properties also help to determine how VoiceOver and Switch Control facilitate user interaction.

For more information, See the official Apple documentation here: Accessibility Programming Guide

546 questions
-1
votes
1 answer

How to set the accessibility label in asset catalog? Xcode 11

Is there any way to set the accessibilityLabel for an image asset inside the asset cataloge? I don't want to handle that label everywhere I use that image asset.
WalterBeiter
  • 2,021
  • 3
  • 23
  • 48
-1
votes
1 answer

IOS Voiceover not read div content

When I using div content for showing under the image or graphic I must closed these visual contents for accessibility options. And I wannat just showed ( voice over speak ) my aria-label content but. Voiceover didt read this label.
-1
votes
1 answer

Use of unresolved identifier 'UIAccessibility'

I did import UIKit, but apparently Xcode is still not able to find UIAccessibility as mentioned in this WWDC. Also my os is above 3.0 as required for this.
-1
votes
1 answer

UIAccessibility - Trigger for element creation

Is there a way to make a trigger (in Swift) that fires and does something whenever a certain element (like when app.staticTexts["sometitle"]) exists and is accessible by Accessibility. In other languages, "stand-by" loops are considered bad…
SalmonKiller
  • 2,183
  • 4
  • 27
  • 56
-2
votes
1 answer

How do I turn off the accessibility screenreader programmatically/automatically in swift?

I need to turn off the accessibility screenreader programmatically/automatically in certain view or viewcontroller
-3
votes
1 answer

Accessibility role imagebutton equivalent in ios

As we have imagebutton as an accessibility role in react native, I couldn’t find an equivalent to this in iOS. In iOS I could find only button as accessibility trait. Can we implement the same in iOS for which the button would say imageButton…
Sree
  • 23
  • 1
  • 6
1 2 3
36
37