A Claude Code skill that guides writing, reviewing, and improving SwiftUI code — correct state management, modern APIs, view composition, performance, animations, accessibility, and iOS 26+ Liquid Glass styling.
iOS developers who want AI-assisted guidance on:
- Choosing the right property wrapper (
@State,@Binding,@Observable,@Bindable) - Extracting and composing views following best practices
- Replacing deprecated APIs with modern equivalents (iOS 18/26)
- Optimizing performance and list identity
- Applying correct animation patterns
- Adding accessibility and adaptive layout
- Adopting Liquid Glass (iOS 26+) following HIG
Install via skills.sh:
npx skills add SwiftyJourney/swiftui-expert-skill- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Any agent supporting the
skills/convention
Try these prompts:
Review this SwiftUI view for state management issues.
This view body is 200 lines. Help me break it down.
Update this code to use modern SwiftUI APIs.
The agent will follow the skill's workflow decision tree, reference the correct guide, provide corrected code, and explain why each pattern is preferred.
SKILL.md # Hub (~180 lines)
references/
├── _index.md # Navigation hub
├── state-management.md # Property wrapper selection guide
├── view-composition.md # View extraction rules and patterns
├── modern-apis.md # iOS 18/26 API replacements
├── performance-patterns.md # Optimization techniques and anti-patterns
├── list-patterns.md # Stable identity, ForEach, LazyVStack
├── navigation-patterns.md # NavigationStack, programmatic navigation
├── animation-basics.md # withAnimation, implicit/explicit
├── animation-transitions.md # AnyTransition, matched geometry
├── animation-advanced.md # PhaseAnimator, KeyframeAnimator
├── scroll-patterns.md # scrollPosition, scrollTargetBehavior
├── text-formatting.md # AttributedString, textRenderer
├── image-optimization.md # AsyncImage, caching strategies
├── accessibility-patterns.md # Semantic styling, @ScaledMetric, VoiceOver
└── liquid-glass.md # iOS 26 Liquid Glass API and HIG guidance
- iOS Architecture Expert — Clean architecture, composition root, protocol-oriented design
- Requirements Engineering — BDD stories and use cases
- Natalia Panferova — "The SwiftUI Way" field guide to SwiftUI patterns and anti-patterns
- Matteo Manferdini — SwiftUI view composition methodology
- Apple — SwiftUI documentation, WWDC sessions, and Human Interface Guidelines
MIT — see LICENSE.