r/iOSProgramming • u/Few-Pilot7575 • 2d ago
Discussion Agent written SwiftUI keeps breaking accessibility and nobody notices
Our iOS app has a lot of older users, and accessibility matters for us, about 9% of sessions use VoiceOver or a large dynamic type size. Since agents started writing most new screens, our accessibility has been quietly getting worse.
What a blind user's email made us find last month:
- icon only buttons with no accessibility label, so VoiceOver reads "button"
- a custom card that groups 5 elements into one, so you can't reach the delete action
- text in fixed frames that gets cut off at larger type sizes
- a sheet that traps focus when it opens
coderabbit catches some of it in review, like an Image used as a button without a label. But reading order and what happens at the largest text size don't show up in a diff, and none of us test with VoiceOver on every PR.
What's helped so far:
- accessibility snapshot tests at 3 dynamic type sizes for our main screens
- a short accessibility section in the agent's instructions
- one person doing a 10 minute VoiceOver pass before each release
How do other iOS teams keep accessibility from slipping when agents write the UI? Anything automated that actually catches the VoiceOver problems?
View all comments
2
u/SwiftlyJon 2d ago
This seems pretty easy as a skill for the agent, or as part of a review. In fact, the Copilot reviewer brings it up a lot, despite the fact the app doesn't really support accessibility (don't ask). Reveal is pricy, but it has great accessibility tools and an MCP server agents can use to inspect the accessibility hierarchy.