Skip to content

SwiftyJourney/swiftui-expert-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftUI Expert Agent Skill

License: MIT Agent Skills

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.

Who is this for?

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

Installation

Install via skills.sh:

npx skills add SwiftyJourney/swiftui-expert-skill

Compatible Agents

Quick Start

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 File Structure

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

Related Skills

Credits

  • 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

License

MIT — see LICENSE.

About

Claude Code skill for writing, reviewing and improving SwiftUI code - state management, view composition, performance, animations, accessibility, and Liquid Glass.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors