
ios-accessibility
Expert guidance on iOS accessibility best practices, patterns, and implementation. Use when developers mention: (1) iOS accessibility, VoiceOver, Dynamic Type, or assistive technologies, (2) accessibility labels, traits, hints, or values, (3) automated accessibility testing, auditing, or manual testing, (4) Switch Control, Voice Control, or Full Keyboard Access, (5) inclusive design or accessibility culture, (6) making apps work for users with disabilities.
- Installs
- 913
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/dadederk/ios-accessibility-agent-skill --skill ios-accessibility- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads ios-accessibility automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
iOS Accessibility
Overview
This skill provides expert guidance on iOS accessibility, covering VoiceOver, Dynamic Type, assistive technologies, inclusive design practices, and both UIKit and SwiftUI implementations. Use this skill to help developers build apps that work for everyone.
The Approach
- Shift-left — Accessibility is part of the process. It needs to be considered even in prototypes or MVPs.
- User-centric — Accessibility is about people. Checklists help, but the goal is not checklist compliance. The goal is to offer a great experience for users with disabilities.
- Progress over perfection — Anytime is a good time to start. Focus on iterative and incremental improvements as you go. It goes a long way.
- Test as you go — Manual testing is part of development.
Agent Behavior Contract
- Accessibility is non-deterministic. Propose potential solutions in order of confidence and present with clear pros, cons, and trade-offs.
- Before proposing fixes, identify the platform (UIKit vs SwiftUI) and the assistive technology, accessibility feature, or design consideration in context.
- Do not recommend accessibility fixes without considering the user experience impact.
- Prefer manual testing guidance alongside code changes, together with any automated or semi-automated solutions.
- Cross-reference multiple assistive technologies when relevant (VoiceOver, Voice Control, Switch Control, Full Keyboard Access).
Anti-Patterns to Avoid
- Do not add trait names to labels — Say "Close", not "Close button" (VoiceOver adds "button" automatically, when using the button trait)
- Do not use
.accessibilityHidden(true)on interactive elements — Users won't be able to access them - Do not use fixed font sizes — Always use text styles for Dynamic Type support
- Do not use hardcoded colors for text — Use semantic colors (
.label,.secondaryLabel) for contrast and Dark Mode - Do not group UIKit elements without a clear combined label — If
isAccessibilityElement = true, setaccessibilityLabel(and value/traits as needed). - Do not group SwiftUI elements without a clear combined label — If
.accessibilityElement(children: .ignore)is used, provide label/value/traits manually. - Do not add hints unless needed — It should be clear what a component expresses, and does, by its label/value/traits. Only configure for adding extra clarity or context.
- Do not rely on
onTapGesturealone — Prefer semantic controls likeButton. If gesture handling is unavoidable, add button traits and clear labels. - Do not scale chrome controls with Dynamic Type — For navigation bars, toolbars, and tab bars, prefer Large Content Viewer (iOS 13+) using
.accessibilityShowsLargeContentViewer/UILargeContentViewerItem.
General Guidance
Prefer native components: Whenever possible, use Apple's native components and customize them to your needs instead of building custom components from scratch.
Design system first: Whenever the project uses a design system of its own (colors, text styles, component catalog), propose changes in the design system itself so the improvement snowballs everywhere in the app using an improved component.
Platform parity: The same accessibility principles apply to both UIKit and SwiftUI, but APIs and implementation details differ.
Project Settings Intake (Evaluate Before Advising)
Before providing accessibility guidance, determine:
Project Capabilities
- Is the project using SwiftUI, UIKit, or a mix of both?
- iOS deployment target — Some APIs require specific versions:
- iOS 13+: Large Content Viewer (
UILargeContentViewerInteraction), SF Symbols - iOS 14+: Switch Control action images (
UIAccessibilityCustomAction.init(name:image:actionHandler:)) - iOS 15+:
AccessibilityFocusState,.accessibilityRotor - iOS 16+:
.accessibilityRepresentation,.accessibilityActions { }syntax - iOS 17+:
.sensoryFeedback
- iOS 13+: Large Content Viewer (
- Check minimum OS — Look for
#availablechecks and deployment target in project settings
Project Conventions
- Design system — Does the project define its own design system (colors, text styles, UI component catalogue)? Propose changes in the design system when appropriate, not only per-feature.
- Semantic colors and text styles — Does the project use semantic colors (
.label,.systemBackground) and text styles (.preferredFont(forTextStyle:)in UIKit,.font(.body)in SwiftUI) vs hardcoded values? - Existing accessibility patterns — Search for
.accessibilityLabel,.accessibilityTraits, etc. to match project style. - Localization — Accessibility labels, values, and hints should be localized. Match the project's localization conventions.
- UI construction — Interface Builder (XIB/Storyboard) or code-only?
- Custom gestures — Identify if custom gestures need accessible alternatives.
- Accessibility test coverage — Existing UI tests auditing for accessibility?
When Settings Are Unknown
If you can't determine the above, ask the developer to confirm before giving version-specific or framework-specific guidance.
Quick Decision Tree
When a developer needs accessibility guidance, follow this decision tree:
-
VoiceOver issues?
- Core concepts: Read
references/voiceover.md - UIKit implementation: Read
references/voiceover-uikit.md - SwiftUI implementation: Read
references/voiceover-swiftui.md
- Core concepts: Read
-
Dynamic Type, text scaling, or adaptive layout?
- Core concepts: Read
references/dynamic-type.md - UIKit implementation: Read
references/dynamic-type-uikit.md - SwiftUI implementation: Read
references/dynamic-type-swiftui.md
- Core concepts: Read
-
Other assistive technologies?
- Voice Control: Read
references/voice-control.md - Switch Control: Read
references/switch-control.md - Full Keyboard Access: Read
references/full-keyboard-access.md
- Voice Control: Read
-
Testing accessibility?
- Manual testing: Read
references/testing-manual.md - Automated testing: Read
references/testing-automated.md
- Manual testing: Read
-
Cross-cutting concerns?
- Contrast, targets, motion, haptics: Read
references/good-practices.md - Culture and mindset: Read
references/concepts-and-culture.md
- Contrast, targets, motion, haptics: Read
-
Quick reference needed?
- Common mistakes, patterns, checklists: Read
references/playbook.md
- Common mistakes, patterns, checklists: Read
-
Need definitions or sources?
- Glossary: Read
references/glossary.md - Sources and further reading: Read
references/resources.md
- Glossary: Read
Quick Playbook (Start Here)
- Confirm framework (UIKit vs SwiftUI) and iOS target.
- Identify assistive technology and user-experience issue.
- Use the Decision Tree and jump into the relevant reference file.
- Whenever it makes sense, provide 2-3 options with trade-offs and expected UX impact.
- Always include testing guidance alongside any code changes.
For common mistakes, inspector warnings, code patterns, version-specific APIs, and checklists, use references/playbook.md.
Example Prompts and Expected Shape
Example prompt: “VoiceOver reads ‘button’ for my close button.” Expected response:
- Confirm framework and iOS target if unknown.
- Provide options when there are multiple viable approaches (for example, add an accessibility label vs a labeled button using icon-only style), with trade-offs.
- Include a framework-appropriate snippet.
- Add testing steps (VoiceOver, Voice Control...).
Example prompt: “Dynamic Type breaks my header layout in UIKit.” Expected response:
- Confirm
preferredContentSizeCategoryhandling and iOS target. - Suggest layout adaptation strategies (stack axis change vs constraints).
- Include a UIKit snippet and testing steps at Large Accessibility Sizes.
Edge Cases and Gotchas
- Mixed UIKit/SwiftUI screens: use correct API set per view layer.
- Custom controls or gestures: always provide a VoiceOver/Voice Control alternative.
- Unknown iOS target: ask before suggesting version-specific APIs.
- No code context: ask for relevant view code or a screenshot of the Accessibility Inspector.
- Localization: all labels, values, and hints (and any other string parameter like custom content, or accessibility announcements, etc.) must be localized.
FAQ
What does the ios-accessibility skill do?
Expert guidance on iOS accessibility best practices, patterns, and implementation. Use when developers mention: (1) iOS accessibility, VoiceOver, Dynamic Type, or assistive technologies, (2) accessibility labels, traits, hints, or values, (3) automated accessibility testing, auditing, or manual testing, (4) Switch Control, Voice Control, or Full Keyboard Access, (5) inclusive design or accessibility culture, (6) making apps work for users with disabilities.
How do I install ios-accessibility?
Run npx skills add https://github.com/dadederk/ios-accessibility-agent-skill --skill ios-accessibility in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ios-accessibility/ (personal) or .claude/skills/ios-accessibility/ (project).
Which AI agents can use ios-accessibility?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is ios-accessibility safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains ios-accessibility?
It is published by dadederk in dadederk/ios-accessibility-agent-skill. It has 913 recorded installs.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.