What problem does it solve?
This skill prevents the two most common failure modes in AI-generated SwiftUI: over-customization that fights the system instead of using native components, and visual incoherence from arbitrary spacing, font sizes, and hardcoded colors. It ensures SwiftUI screens look and feel like they shipped with iOS, not like they were generated by AI.
Core Features & Use Cases
- Native Component Priority: Enforces using system NavigationStack, TabView, List, Form, and other first-party components instead of hand-rolled alternatives, ensuring free Liquid Glass adoption and optimal performance.
- Anti-Slop Design Rules: Enforces a strict spacing grid (4/8/12/16/20/24/32/40/48), ≤5 font sizes with Dynamic Type, semantic system colors, and 10pt card radius to eliminate visual inconsistency.
- State-Driven Architecture: Mandates MainActor Observable view models, actor services, and NavigationStack with value-based destinations for testable, maintainable code.
- iOS 26 Liquid Glass Guidance: Teaches when and how to use glassEffect correctly—only on floating navigation-layer controls, never on content—and how to group adjacent glass with GlassEffectContainer.
- Self-Audit Checklist: Provides a 13-domain audit framework covering space efficiency, visual hierarchy, accessibility, HIG compliance, dark mode, performance, and more, with severity ratings and specific fixes.
Quick Start
Use the swiftui-ui skill to build a new SwiftUI screen with native components, proper spacing, and state-driven navigation, then run the self-audit checklist before declaring it done.