In what order are attributes read for adjustable accessibility elements on iOS?

Viewed 15

For an adjustable element on iOS, there are at least 4 different pieces of information that can be set:

  • .accessibilityLabel()
  • .accessibilityHint()
  • .accessibilityValue()
  • .accessibilityAddTraits()

If an element is an adjustable element, in what order will these items be read, and which one(s) will be read as the user interacts with the adjustable view?

Is any of this documented anywhere, or do we just need to try it out?

1 Answers

First note that testing in the Simulator + Accessibility Inspector isn't a perfect replica of a real device. So when in doubt, test on a real device.

An adjustable element behaves in the following manner:

  • When focused: "[label], [value], Adjustable, [hint], Swipe up or down with one finger to adjust the value"
  • When changing value: "[new_value]"
  • When changing value past edge: "[value]", simultaneously plays haptic and audio sound to indicate at edge. It seems to determine if it's at the edge by noticing that nothing changed on screen.
Related