SwiftUI & UI Frameworks / 16:25

Refine accessibility for custom controls

SwiftUI & UI FrameworksAccessibility & Inclusioniosipadosmacostvosvisionoswatchos

Key Points

  • Covers the full potential of interactive app elements by making them accessible to everyone.
  • Breaks down how people understand and use controls with VoiceOver and other assistive technologies, exploring a variety of input methods like actions, the passthrough gesture.
  • Covers several custom controls and the accessibility refinements that make them work better with assistive technologies.
  • The session moves through Guiding principles, Complex controls.
  • Key concepts include VoiceOver, VirtualCat.
  • Platform coverage: ios, ipados, macos, tvos, visionos, watchos.

Condensed Flow

01

Complex controls:

Focuses on VoiceOver, VirtualCat.

More Detail

Additional details

  • A custom control needs to expose the same information its visuals imply: purpose, current value, available actions, and feedback as the value changes.
  • The slider example maps those needs to VoiceOver output: a label, a percentage value, an adjustable trait, and a hint for changing the value.
  • Nonstandard gestures should not be the only path; add accessible actions or direct-touch behavior when the control's interaction model requires it.
  • Complex controls need meaningful accessibility structure, not just a single wrapper around many visual subparts.
  • The examples are meant to be tested across assistive technologies such as VoiceOver, Switch Control, keyboard input, and platform-specific interaction methods.

Resources