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
0
votes
1 answer

iOS - UI Testing Find Image In TableViewCell

I'm writing UI tests for my almost finished, Objective-C coded app as a newbie at UI tests. I have a UITableView with custom cells. A cell either has text view or image or progress view. Image or progress view is set dynamically. For my tests, I…
anyName
  • 113
  • 1
  • 2
  • 13
0
votes
2 answers

how to print uiview in label (swift3)

I am trying to print a uiview in a label. I don't know if I should put accessibilityIdentifier or not. When I did put accessiblitiyIdentifier in my whole app loaded but was all black. @IBOutlet var pink: UIView! @IBOutlet var label:…
user7961001
0
votes
1 answer

Simulate VoiceOver accessibility tap on iOS

I know I can simulate a button tap with something like: buttonObj.sendActions(for: .touchUpInside) but that actually taps the button and doesn't activate the element for VoiceOver. I want to programmatically tap the element as if a user taps on it…
Adam Johns
  • 35,397
  • 25
  • 123
  • 176
0
votes
1 answer

Using ARIA trees, is it compulsory to use ul-li structure for this role?

I am working on accessibility and new to the ARIA. In one of the implementation, we are using role="treeitem" but we have implemented tree using DIV structure. It's failing in JAWs. It's reading same content three times. While going through online…
alok_dida
  • 1,723
  • 2
  • 17
  • 36
0
votes
1 answer

Accessibility iOS - Swift

I am reusing one view controller for two different screens. when user navigates to the view controller first time voice over speaks the default title(first title). When navigation item title changes voice over not speaks the title. How can I turn on…
0
votes
3 answers

ARIA -LABEL not working on checkbox

I am using JAWS to read ARIA-LABEL for the checkbox. This checkbox has the opacity as 0. basically we are displaying another label instead of the checkbox to get a customized look for the checkbox.We capture the click on the hidden checkbox and…
namrata
  • 2,235
  • 5
  • 28
  • 35
0
votes
1 answer

How to focus on the trigger element which opens and modal and once the content is saved the whole page destroyed and rendered again

This is more of an architectural question, so in a webpage I have a edit button when allows me to edit a record. As soon as I press the edit button a modal opens up I change some of the records info and I hit save. The focus returns to the (X) close…
Ninja
  • 11
  • 3
0
votes
1 answer

How to disable accessibility font bolding in my iOS app?

I can detect if fonts are bold because of accessibility in iOS, using UIAccessibilityIsBoldTextEnabled, but I can't disable font bolding in my app. Is there any way so I can keep my app from bolding, because my texts are already bold and…
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
0
votes
1 answer

Strange behavior of the UIBarButtonItem with Accessibility Button Shape

Application shows UIBarButtonItem in the self.navigationItem.leftBarButtonItem successfully. Button created like this. self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:Localized(kSelect) style:UIBarButtonItemStylePlain …
Oleg Gordiichuk
  • 15,240
  • 7
  • 60
  • 100
0
votes
1 answer

UIAccessibilityContainer dynamically update protocol methods

I have a custom UIView which I have implemented the informal protocol UIAccessibilityContainer. My accessibility elements for this UIView differs depending on the state of the view. In my case it's a player, so when it's playing it has a stop button…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
0
votes
1 answer

How to get accessibilityIdentifier from #selector

I'm trying to pass the accessibilityIdentifier of the imageView I created, but it doesn't seem to do so (I have successfully set the accessiblityIdentifier btw).
ReversedcigoL
  • 71
  • 4
  • 11
0
votes
1 answer

Letting VoiceOver users know what a popover is pointing to

I'm writing an iOS app where the first time a user sees a particular control, I show them a popover that explains what the control does. With VoiceOver on, I've made it so the popover works like an alert - it will get the accessibility focus, and…
0
votes
1 answer

How fast is UIAccessibilityIsVoiceOverRunning()?

In a project I'm working on, I record usage metrics for various features, and I want to also track how often the features are used in accessibility mode. To that effect, I intend to use the UIAccessibilityIsVoiceOverRunning() function. What I don't…
RuslanD
  • 295
  • 3
  • 12
0
votes
1 answer

How to implement voiceover for the pages with WKWebview and UIWebview

How to implement voiceover for the pages with WKWebview and UIWebview. I have tried it both type of views but no Luck. i have webview inside a normal view. I have set the normal view accessibility to false and added the same for webeview. Can any…
0
votes
1 answer

UITableViewRowAction accessibilityValue

I'm trying to set an accessibility label / value for the UITableViewRowAction's button , in order to use it with appium automation , but from some reason , the accessibility hasn't been recognised cancel = UITableViewRowAction(style: .Destructive,…
Igal
  • 4,603
  • 14
  • 41
  • 66