How to test VoiceOver with Claude Code
Updated 29 November 2026.
VoiceOver is the screen reader built into iPhone and iPad. It speaks the screen one element at a time: the label, the value, the traits (the element's role and state, such as "Button" or "Selected"), and then, after a pause, a hint. A blind person moves through your app by swiping from element to element and double-tapping to activate.
Claude Code can do a lot of the testing work for you. It can write the tests, run them, read the results and sort real problems from noise. But it can't tell you whether your app makes sense to someone who can't see it. This guide shows what to automate, what to check by hand, and where Claude helps with each.
What automated checks catch, and what they miss
Automated checks are good at finding missing labels, touch targets that are too small, clipped text, fonts that don't scale and some contrast failures.
They can't judge whether the VoiceOver experience makes sense. A test can confirm that a button has a label. It can't tell you the label says the right thing. It can't tell you the reading order is logical, or that focus lands in a sensible place after a sheet closes.
So a passing audit never means a screen is usable. The working approach has two parts:
- Automated checks on every pull request, so regressions are cheap to catch.
- A manual pass with VoiceOver on a real device before each release.
Layer 1: Apple's accessibility audit
Since Xcode 15, a UI test can run Apple's built-in accessibility audit on the screen that's showing. It needs an iOS 17 or later runtime. Ask Claude to add a test per main screen:
func testHomeScreen() throws {
let app = XCUIApplication()
app.launch()
try app.performAccessibilityAudit()
}
If your UI test target supports versions before iOS 17, wrap the call in if #available(iOS 17.0, *).
On iOS, the audit checks contrast, elements that aren't exposed to assistive technology, hit regions (touch targets) that are too small, missing or unhelpful descriptions, text that doesn't scale, clipped text, and traits that don't match behavior.
Three things to know:
- It only sees what's on screen. Navigate to each important state (empty, loaded, error, sheet open) and audit each one. Run it at the default text size and again at the largest.
- Ignore false positives narrowly. The audit takes a handler where you can skip one known issue by type and identifier, with a comment that says why. Never skip a whole category.
- Contrast results are leads. Apple's rule is more lenient than WCAG for small bold text. Measure before you report.
This is the part Claude can handle almost entirely: writing the tests, adding the accessibilityIdentifiers the tests need to find elements, running xcodebuild test, and reading the failures.
Layer 2: Check the labels VoiceOver will read
Every UI test reads the accessibility tree, so asserting labels is itself VoiceOver coverage. Find elements by identifier, then check what the person will hear:
let row = app.cells["orders_row_1234"]
XCTAssertEqual(row.label, "Order 1234, 42 dollars, Shipped")
XCTAssertTrue(app.buttons["recipe_favorite"].isSelected)
Identifiers are never spoken, and they don't replace labels.
Beyond exact assertions, Claude can sweep a whole screen for labels that are likely wrong. Examples:
- A control or image with no label.
- Two elements with the same label on one screen, such as two "Delete" buttons.
- A role word in the label, like "Save button". VoiceOver already says "Button", so the person hears it twice.
- An SF Symbol or file name read aloud, such as "square.and.arrow.up".
Rules still can't tell whether a label makes sense in context. A useful step here is a label review: a screenshot with numbered boxes, next to the numbered list of labels in VoiceOver order. A person reads the two side by side. Claude can generate the screenshots and the list; you make the judgment.
Layer 3: Real VoiceOver speech in a UI test (iOS 27)
The checks above work out from the accessibility tree what VoiceOver will probably say. From Xcode 27, a UI test can turn on the real VoiceOver and read back what it speaks, as text. This works on a simulator or a device running iOS 27 or later:
let voiceOver = XCUIDevice.shared.voiceOverService
try voiceOver.enable()
defer { try? voiceOver.disable() }
let spoken = try voiceOver.moveForward().utterance // e.g. "View full menu Button"
This gives you things the tree can't: the role as spoken, the hint, the value and the true focus order. A tappable view that's missing the button trait shows up as bare text with no "Button" after it.
It has limits. It's slow, about half a second per element. Wait a few seconds after enable(), because VoiceOver speaks a start-up phrase first. Always turn it off, even when a test fails. It has no rotor and no three-finger swipe. And it tells you what was said, not whether it makes sense.
Layer 4: The manual VoiceOver walkthrough
This part needs a person and a real device. The simulator can't do VoiceOver gestures, the rotor, Magic Tap or Screen Curtain.
First, set up a way out. In Settings → Accessibility → Accessibility Shortcut, choose VoiceOver and at least one other feature. A triple-click of the side button then shows a menu, so you can always turn VoiceOver off and you won't turn it on by accident. "Hey Siri, turn off VoiceOver" also works.
Then go through each main task:
- Turn on Screen Curtain (three-finger triple-tap) and finish the task without looking. Anywhere you get stuck is a finding.
- Swipe through every screen. Each element should be reached once, in visual order, with a clear name, the right role and its state.
- Use the rotor (rotate two fingers). Headings should jump between sections, and rows with extra actions should list them under Actions.
- Listen for changes. Errors, "loading finished", "item added" and toasts should be announced.
- Watch focus. After a sheet or alert opens, focus should move into it. After it closes, focus should return to the control that opened it.
- Try the escape gesture (a two-finger Z-shaped scrub). It should go back or close the sheet.
Turn on the Caption Panel in VoiceOver settings to read what VoiceOver says without sound. And test at a realistic speech rate: many VoiceOver users listen fast.
Claude's role here is to prepare the script and record the results. It can't hold the phone.
How Claude tells real problems from noise
Automated tools report false positives, and a good assistant checks before it reports. Two common cases:
- A system button with an empty label in the tree. VoiceOver often names system back, toolbar and tab bar buttons even when the tree shows nothing. On iOS 27, Claude can move real VoiceOver onto the button and read what's spoken before calling it a bug.
- A control that looks unreachable. XCUITest doesn't show custom actions. A button inside a row can look missing while the row offers the same action in VoiceOver's Actions rotor. Claude can search the code for the custom action before reporting it.
A good rule: a finding from the tree is a lead until it's confirmed with VoiceOver.
Get this workflow ready-made
The iOS Sidekick is an MCP server that gives Claude Code and Cursor this whole approach: drop-in test helpers for audits, label rules, label review reports and real VoiceOver speech, plus the manual scripts for each assistive technology. It's made by Robin Kanatzar, an iOS accessibility specialist. See the iOS Sidekick. Whatever tools you use, keep the last step: someone with VoiceOver on a real device.