Mobile Accessibility

Support screen readers, dynamic text, contrast, touch target sizes and reduced motion so people with disabilities can use every feature.

Intermediate · about 6 hours · difficulty 3/5

Learn first: Human Interface Guidelines (iOS), Components, Props & Styling

Around one in six people lives with a disability, and many more use accessibility settings every day (larger text, dark mode, reduced motion). Accessible apps are also easier to test automatically and are required by law in many markets.

Screen readers

VoiceOver (iOS) and TalkBack (Android) read out elements and let users swipe between them. Every interactive element needs:

  • a label (what it is: "Add to cart"),
  • a role (button, link, header, switch),
  • a state where relevant (selected, disabled, checked),
  • an optional hint for non-obvious actions.

In React Native that is accessibilityLabel, accessibilityRole and accessibilityState (or the aria-* props). Flutter uses Semantics, Compose uses Modifier.semantics { contentDescription = ... }, and SwiftUI uses .accessibilityLabel() and .accessibilityAddTraits(). Hide decorative images from assistive tech and group related elements so a card is read as one item.

Visual accessibility

  • Support dynamic type / font scaling; layouts must grow instead of truncating.
  • Meet contrast of at least 4.5:1 for body text.
  • Never rely on colour alone to convey meaning (add icons or text).
  • Honour Reduce Motion and Bold Text settings.

Motor accessibility

Targets of 44 pt or 48 dp, spacing between them, and alternatives to complex gestures. Test with Switch Control or Switch Access at least once.

Testing

Turn on VoiceOver and TalkBack and complete your main flow with your eyes closed. Use Xcode's Accessibility Inspector and Android's Accessibility Scanner, and add accessible queries to component tests.

Good enough to move on: a screen reader user can sign in and complete your core flow, and the app remains usable at the largest text size.

Key concepts

  • VoiceOver and TalkBack basics
  • Labels, roles, states and hints
  • Grouping and focus order
  • Dynamic type and font scaling
  • Colour contrast
  • Touch target sizes
  • Reduce Motion support
  • Accessibility Inspector and Scanner

Mini project

Audit one of your apps with VoiceOver or TalkBack and the largest font size, log every issue you find, and fix them until the core flow works without sight.

Check yourself

What does a screen reader announce for an icon-only button without a label, and how do you fix it in your stack?

Free resources