What It Does
SwiftUI HIG Audit is a static code analysis tool that scans your SwiftUI source files against Apple’s Human Interface Guidelines and WCAG 2.1 AA accessibility standards. It identifies 190+ rules across 22 categories—from VoiceOver labels and contrast violations to Dark Mode hardcoding and touch target sizes—without building or running your app.
How It Works
The skill auto-triggers when you ask Claude to audit or review your SwiftUI code. It can also run via explicit /hig-audit and /hig-fix commands. The tool scans for code patterns (like onTapGesture instead of Button, hardcoded colors, or missing .searchable), reports findings with severity levels and fix suggestions, and can automatically remediate violations with build verification.
Use Cases
- Pre-launch audits: Catch accessibility and HIG violations before App Store submission
- Accessibility compliance: Ensure WCAG 2.1 AA standards across your codebase
- Design system enforcement: Verify typography, spacing, and color usage matches guidelines
- Onboarding new developers: Establish HIG best practices as automated checks
- Dark Mode & Dynamic Type: Catch hardcoded values that break adaptive UI
Who Benefits
Product designers building SwiftUI apps, iOS developers shipping accessible products, design systems teams enforcing guidelines, and accessibility advocates ensuring compliance at scale.