Accessibility

Dotwear does not replace platform controls. It styles them. A Dotwear button in SwiftUI is still a Button, a switch is still a Toggle, and a text field is still a TextField. In React Native, buttons and toggles are a standard Pressable with the matching accessibilityRole and accessibilityState, and a text field is a standard TextInput. In Flutter, buttons are a standard TextButton, text fields a standard TextField, and toggles report toggled or checked like the standard controls. What the platform gives those controls for free keeps working:

  • VoiceOver and TalkBack names, roles and states (for example “Switch, on”)
  • Dynamic Type for labels
  • Full Keyboard Access and focus rings
  • Voice Control, text input and IME composition

What we check

  • Automated audits of the iOS demo app (performAccessibilityAudit) on every change.
  • Tests of the role, name and state that each React Native and Flutter component reports.
  • Touch targets of at least 44 pt on iOS and 48 dp on Android in React Native, and 48 × 48 in Flutter.
  • Pixel-exact rendering tests for every icon on every platform.

Your part

  • Give icons a label when they carry meaning on their own (how).
  • Give icon-only buttons an accessibility label.
  • Keep a visible label for text fields; a placeholder is not a label.
  • When you customize colors, check contrast again.