SwiftUI Expert
SwiftUI best practices for state, view composition, performance and modern APIs including Liquid Glass, with about fifty references.
$ npx skills add https://craftwork.design/skills/swiftui-expert -a claude-code -y
Installs into .claude/skills/swiftui-expert. Add -g for every project.
SKILL.md
SwiftUI Expert Skill
Operating Rules
- Treat each
Viewtype as an invalidation boundary: give it only the data it reads and keep frequently changing dependencies close to the smallest affected subtree - Search
references/latest-apis.mdwhen writing, reviewing, or migrating API usage; look up only the APIs relevant to the task - Replace hard-deprecated APIs with modern equivalents. During feature work, flag soft-deprecated APIs and leave them in place (see
references/soft-deprecation.md) - Prefer native SwiftUI APIs over UIKit/AppKit bridging unless bridging is necessary
- Focus on correctness and performance; do not enforce specific architectures (MVVM, VIPER, etc.)
- Encourage separating business logic from views for testability without mandating how
- Follow Apple's Human Interface Guidelines and API design patterns
- Only adopt Liquid Glass when explicitly requested by the user (see
references/liquid-glass.md) - Present performance optimizations as suggestions, not requirements
- Use
#availablegating with sensible fallbacks for version-specific APIs - For layout and rendering inputs, read the value nearest the SwiftUI view that consumes it; do not substitute process-global screen state
More mobile & native
- Native-Feeling Mobile Web
Concrete CSS and meta fixes that make a web app feel native on phones: stuck hover, tap flash, dvh, input zoom, safe areas and overscroll.
Emil KowalskiMobile & native45.6K - Animate Expo
Animation decisions for React Native and Expo: Reanimated or Animated, springs, keeping motion off the JS thread, press states and haptics.
Emil KowalskiMobile & native45.6K