Ten SwiftUI Accessibility Checks You Can Run Before Lunch
Photo: Jimthing, CC BY-SA 3.0, via Wikimedia Commons
Accessibility bugs rarely crash your app. They just make it unusable for someone who needs VoiceOver, larger text, or a Switch Control device. In the US, that is not only a retention problem. It is a legal exposure problem. ADA-related demand letters and lawsuits against mobile apps are a real line item now, and most of the issues cited are not exotic. They are missing labels, broken focus order, and text that clips at larger sizes.
The good news: you do not need a specialized audit vendor to catch the cheap stuff. You need Xcode, a simulator, and a quiet afternoon. Here are ten SwiftUI checks I run before a release. None require a third-party SDK. All of them map to bugs real users hit.
Why a $0 audit beats a compliance sticker
A lot of teams treat accessibility like a checkbox for legal review. That is backwards. The same fixes that reduce legal risk also improve onboarding, support load, and App Store reviews. If a button is unlabeled, VoiceOver users cannot complete a purchase. If Dynamic Type breaks your layout, older users bounce. These are product bugs with a compliance tail, not the other way around.
1. VoiceOver reading order matches visual order
Turn on VoiceOver in the simulator and swipe through your main screen. Does the order follow the visual hierarchy, or does it jump from the header to a footer button and back to the middle? SwiftUI usually gets this right with stacks, but overlays, ZStacks, and custom layouts can scramble it. Use .accessibilityElement(children: .combine) when a card should be one stop. Use .accessibilitySortPriority when you need to nudge order without changing layout.
2. Dynamic Type at the edges, not just the middle
Most engineers test at the default size and call it done. Test at the smallest and largest accessibility sizes. Look for clipped labels, buttons that collapse, and text that overlaps images. Avoid fixed heights on text containers. Let SwiftUI size them. If you must cap growth, use .dynamicTypeSize(...DynamicTypeSize.accessibility2) deliberately, not as a bandage.
3. Contrast that survives dark mode and materials
Contrast bugs hide in secondary text, disabled buttons, and text over materials. Check both light and dark mode. Increase Contrast setting is also worth a pass. If your brand color fails on a blurred background, add a solid fallback behind the text. Do not rely on color alone to communicate state; pair it with text or an icon.
4. Tap targets that do not require sniper aim
Apple's guidance is 44 by 44 points. I still see 24-point icon buttons in production. Wrap small icons in a larger frame with .contentShape(Rectangle()) so the hit area grows without changing the visual. This one is cheap and pays off immediately for everyone, not just users with motor impairments.
5. Focus states for hardware keyboards and Switch Control
On iPad and Mac Catalyst, keyboard focus matters. On iPhone, Switch Control does. Tab through your app with a hardware keyboard and confirm focus rings are visible and logical. Custom buttons built from shapes often lose default focus behavior. Add .focusable() and test the path from first control to last.
6. Labels that describe outcomes, not icons
A trash can icon should not be labeled trash can. It should be labeled Delete draft. A plus button should say Add item. Use .accessibilityLabel for the outcome. If an icon is decorative, hide it with .accessibilityHidden(true). This is the single highest-yield fix in most codebases.
7. Reduce Motion and Reduce Transparency
Animations that look great in a demo can cause dizziness. Respect @Environment(\.accessibilityReduceMotion) and swap large transitions for fades or no motion. Also check accessibilityReduceTransparency if you lean on blur. This is not about removing polish. It is about giving users a version of polish they can tolerate.
8. Forms and errors announced correctly
When validation fails, does VoiceOver announce the error, or does it silently turn a border red? Post an announcement with AccessibilityNotification.Announcement and move focus to the first invalid field. Make sure error text is associated with the field, not floating elsewhere. Test with the keyboard covering half the screen, because that is where real users live.
9. Sheets, alerts, and navigation announce context
When a sheet opens, VoiceOver should land on its title or first meaningful control, not the background screen. Same for alerts and full-screen navigation. Check that dismissing a sheet returns focus to the control that opened it. SwiftUI has improved here, but custom presentations still need explicit focus management.
10. The five-minute manual pass
Before you ship, do one real pass: enable VoiceOver, set Dynamic Type to a large accessibility size, enable Reduce Motion, and try to complete your core task. Buy something. Send a message. Finish onboarding. If you cannot complete the task without seeing the screen, you have a release blocker. That is the whole audit.
Ship the fixes, not the spreadsheet
You do not need a 40-page report to catch these. You need a checklist, a simulator, and the discipline to run it before every release. Put these ten checks in your pull request template or release checklist. Assign one owner. Fix the top three this sprint. The next release will be better for users, and your legal team will have less to worry about. That is a rare two-for-one.