Speak What You Draw
A Hello Weather Home Screen widget that hadn’t loaded any weather yet told VoiceOver users “Hello Weather: Mixed conditions, Temperature unavailable.” There were no conditions at all. The widget had no icon to describe, and the speech code named a condition anyway.
The fix was small, and it was one of several like it in October and November. The Daylight card read a missing figure as “0 hours,” the same as a real zero. The weekly temperature chart drew only the days with both a high and a low, but VoiceOver read all seven. It also said “Feels like” for days the server never sent a feels-like value for. The widgets drew dew point, air quality, and the UV index, and spoke only the condition, temperature, and wind. Each bug looked different, and they all had the same cause.
Two lists of data
The view and the spoken text were each building their own list of what to show. The view decides which days to draw, which fallback to use for a missing value, and which unit to put second. The speech code decided the same things again, separately, and usually differently.
Display fallbacks are where it goes wrong. A chart draws a placeholder zero to keep its axis steady. A card shows “-“ for a missing value. A widget shows “Fair” when the icon is unknown. All three are fine on screen, where a person can see the gap. Read aloud, they become claims: “0 hours of daylight,” “Mixed conditions,” “Humidity 0%.”
The rule we settled on: speech reads the same data list the view draws, and never its display fallbacks. The weekly chart now speaks from the chart’s own daily array, so it says exactly the days and values it draws. It says “Feels like” only when every drawn day has a real feels-like high and low. Otherwise it says “Temperature,” which is what it says with Feels Like off. The widgets build each spoken part from the real reading and leave out what’s missing, instead of filling it in. A widget with no weather now says “Hello Weather: Temperature unavailable” and nothing else.
The rule only runs one way
Sharing one list could have meant making the view call into the speech helpers. We ruled that out. The accessibility skill says a view’s drawing logic never calls the speech helpers. Speech can read what the view already knows. The view never asks the speech layer what to draw.
That direction keeps a speech fix from changing the screen. Most PRs in this run say “nothing changes on screen,” and a reviewer can check that by reading the diff. It also explains a choice that looks odd at first. The Daylight card still shows “0 hrs” when the figure is missing, and only the speech changed to “Daylight unavailable.” Changing what’s drawn needs a design look, so it went on a separate list.
A missing value is not a zero
The fixes that needed the most care were the ones where a missing value and a real zero look the same. Daylight is the clearest case. A polar winter day has a real zero hours of daylight, and VoiceOver should say “0 hours.” A day where the server sent no figure should say “Daylight unavailable.” The helper now checks for the missing value first, and the test that had pinned the old behavior, missing equals zero, now pins the new one in all 27 languages.
Audio graphs, the VoiceOver feature that plays a chart as rising and falling tones, have the same trap. The chart descriptor asks each series for its mean. A series with no points has a mean of NaN, and converting that to an integer crashes the app. Review caught it before merge, and the audio graph now drops empty series.
The same rule turned up on Android. Settings lists there showed the chosen option with a checkmark image, and nothing else. The checkmark had no description and the row had no selected state, so TalkBack couldn’t tell the chosen row from the others. The fix was one line marking the row selected whenever the checkmark is visible.
Reviewing for it
The accessibility skill turns this into a review checklist. Each new control has to be a real control, like a Button or Toggle, and not a tap gesture with traits added by hand. A dimmed paid row that opens a paywall is still an enabled button, and shouldn’t be announced as unavailable. A logical row or card gets one VoiceOver stop. The static review also covers every data path a speech helper can see: nil, empty array, zero, an unknown code, partial data, a stale callback, free and paid.
Because the bugs repeated, the skill also asks the reviewer to fix every copy. A speech fix covers each sibling view that repeats the pattern, such as both versions of a stat chart, the day details, the Watch app, and the widgets. The skill lists a few rg searches that find candidates, such as a ?? 0 fallback near an accessibility label. A match is a lead, not a verdict.
Nobody has heard it yet
All of this passed code review and the test suites. One hour-picker PR was checked on the simulator, through the accessibility tree and taps. None of it has been heard on a device. A simulator can’t play VoiceOver speech, and it doesn’t show every trait. The hour-picker PR lists “Not seen: the selected trait” for that reason.
The skill is strict about this. It says not to claim VoiceOver QA from inspection, previews, a simulator build, unit tests, or Accessibility Inspector alone. Each accessibility PR ends with a list of device checks owed, and they’re collected on one open issue for a person with an iPhone and VoiceOver. As of this writing, that issue is still open. The issue says: “All of it passed code review and tests, but none of it has been heard on a device.”
Results
- Widgets, charts, the hour picker, and several cards now speak what they draw. Missing values say “unavailable” instead of a fallback.
- The fixes are small. The widget speech PR was about 40 net lines of app code and added no new strings.
- The rule is in the accessibility skill, so review catches new cases before they ship.
- Device QA is still owed. We know the code says the right words. We don’t yet know how they sound.
Lessons Learned
- Build spoken text from the list the view draws, not from a second list of your own.
- Display fallbacks are for eyes. Never read a placeholder zero, a dash, or a default condition aloud.
- Let speech read the view’s data, and never let drawing call into speech, so speech fixes can’t change the screen.
- Test missing and zero as separate cases wherever they could look the same.
- Don’t call accessibility tested until someone has used it with a screen reader on a device.
The skill
Adapted from the iOS repo’s accessibility skill and its reference files, merged into one.
---
name: accessibility-qa
description: Accessibility review and assistive-technology QA for an iOS app, widgets and Watch app. Use when reviewing controls, interactions, information shown visually, charts, Dynamic Type, motion or color accommodations, focus or announcements, or when planning device QA.
---
# Accessibility QA
Make every interaction operable and every spoken description truthful without changing the
visual design.
## Non-negotiable contracts
- Prefer real controls (`Button`, `Link`, `Toggle`, `NavigationLink`, `Picker`) to tap
gestures plus manual traits. The real control owns its label, value, hint, actions,
enabled state and selected trait.
- Visual dimming is not disabling. A dimmed paid row that opens a paywall is an enabled
button and must not be announced as unavailable.
- Speech comes from the same data and thresholds as the UI. Never turn absent data into zero,
a current timestamp, or a fallback value.
- Hide decoration and duplicates, not meaningful information. Aim for one deliberate
accessibility element per logical row or card.
- Reduce Motion stops nonessential motion at its source while keeping functional state changes.
- A successful build or Accessibility Inspector pass is not proof of good VoiceOver behavior.
## Static review
Inspect the full diff and every consumer of a changed shared view or helper.
- Every action uses the right native control. Each `onTapGesture`, manual `.isButton`,
`accessibilityAction`, nested control and fake navigation link needs a reason.
- Labels, values, hints, selected state, headings and actions live on the element VoiceOver
actually focuses.
- Dynamic strings use verbatim rendering; static copy stays localizable; every new key in an
accessibility path is translated.
- Spoken measurements, dates, percentages and lists use the app's locale, not string
concatenation.
- Review nil, empty, zero, sentinel, unknown-code, partial-data, stale-callback, free/paid and
selected/unselected paths. A drawing fallback must not leak into speech.
- A speech fix covers every copy of the logic it corrects; search the sibling views.
- Compare visual modifiers before and after; normal design must not change.
Candidate searches (matches can be intentional; inspect before editing):
```sh
rg -n '\.onTapGesture|accessibilityAddTraits.*isButton|accessibilityAction' <src>
rg -n 'accessibility(Label|Value|Hint)|UIAccessibility\.post' <src>
rg -n '\?\? (0|999|Date\(\))' <src>
```
## Automated tests
Test contracts that can regress apart from rendering: summary helpers with all data missing,
a real zero, empty arrays and unknown codes; singular/plural units and locales; sparse chart
series and truthful series names; announcement identity, deduplication and cancellation.
Do not snapshot an accessibility string just to mirror its implementation.
## Device QA
Cover the relevant languages, unit systems, free/paid states, and full, partial, nil, empty,
stale and error data.
On iOS, VoiceOver on a physical device:
- Navigate eyes-closed in both directions. Check order, one stop per logical element, names,
roles, values, selected/enabled state, the headings rotor, custom actions, Escape, focus
after navigation and loading, and no asset names or duplicate speech.
- Activate every control, including row and secondary actions, edit modes, paywalls, sheets
and async retries.
- Use visible names with Voice Control. Exercise Switch Control and Full Keyboard Access so no
action depends on a touch gesture.
- Run Dynamic Type through the accessibility sizes. Check Button Shapes, Differentiate Without
Color, Reduce Motion while content is animating, Smart Invert, light/dark and contrast.
- Listen for abbreviations, punctuation, word order and units.
- For charts, enter Audio Graph, play every series, step through sparse points, and check the
spoken axis, series, value and missing-data behavior.
Watch: VoiceOver on real hardware for the app and every affected complication family on a
real watch face, including poor connectivity and the smallest supported hardware.
Widgets: VoiceOver on a physical iPhone for every affected widget family (Home Screen, Lock
Screen, StandBy, each size), in full-color, tinted, light/dark and StandBy rendering, after a
fresh install and after a restart.
Do not claim VoiceOver QA from inspection, previews, a simulator build, unit tests or
Accessibility Inspector alone.
## Handoff
State what became operable or understandable, why the semantics are truthful, how normal
design is preserved, what tests were added, and the exact device QA still required. Report
results, not intentions. Do not claim broad compliance from a bounded change.