
Swiftui Patterns
Builds SwiftUI views using the modern MV architecture pattern where views stay thin and models own business logic. Shows you when to use @State versus @Bindable versus plain let properties with @Observable classes, how to wire environment dependencies, and how to structure async data loading with .task. Includes view composition patterns, custom ViewModifiers, and a review checklist for common mistakes. The architecture guidance is opinionated but practical: it pushes you toward splitting views instead of adding view models, and all the @Observable examples are properly marked @MainActor for Swift 6 concurrency. Targets iOS 26+ but most patterns work back to iOS 17.
- skills.sh installs
- 4.7K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill swiftui-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
SwiftUI Patterns
Modern SwiftUI patterns targeting iOS 26+ with Swift 6.3. Covers architecture, state management, view composition, environment wiring, async loading, design polish, and platform/share integration. Navigation, layout, animation, and Liquid Glass patterns live in dedicated sibling skills. Patterns are backward-compatible to iOS 17 unless noted.
Contents
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Documentation, Code Review & Quality, Debugging, Rust, Mobile Development
- First seen
- May 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Ios Networking4.6K
- Swiftui Navigation4.6K
- Swift Testing4.5K
- Ios Localization4.5K
- Swift Concurrency4.5K
- Swiftui Layout Components4.4K
- Push Notifications4.4K
- Swiftui Liquid Glass4.3K
- Swiftdata4.3K
- Debugging Instruments4.3K
- Swiftui Uikit Interop4.2K
- Storekit4.2K
- Widgetkit4.2K
- Swiftui Gestures4.2K
- Apple On Device Ai4.2K
- Swift Charts4.2K
- Swift Language4.1K
- App Intents4.1K
- Authentication4.1K
- Background Processing4.1K
- Healthkit4K
- Vision Framework4K
- Coreml3.9K
- Core Bluetooth3.9K