If you're building SwiftUI apps targeting iOS 17+, this gives Claude the modern patterns: @Observable instead of ObservableObject, @Bindable for two-way binding, and .task for async work that auto-cancels. It includes a solid decision table for when to use @State vs @Bindable vs @Environment, plus reference guides for MVVM architecture, NavigationStack, UIKit interop, and accessibility. The "Common Mistakes" section is worth the price of admission alone, calling out things like NavigationPath corruption and UIKit memory leaks. Honestly just a well-organized cheat sheet for the iOS 17 SwiftUI rewrite that saves you from Stack Overflow rabbit holes.

skills.sh installs
260
GitHub stars
233
last updated
Aug 21, 2026

Install

$ npx -y skills add johnrogers/claude-swift-engineering --skill swiftui-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

SwiftUI Patterns (iOS 17+)

SwiftUI 17+ removes ObservableObject boilerplate with @Observable, simplifies environment injection with @Environment, and introduces task-based async patterns. The core principle: use Apple's modern APIs instead of reactive libraries.

Overview

Quick Reference

NeedUse (iOS 17+)NOT
Observable model@ObservableObservableObject
Published propertyRegular property@Published
Own state@State@StateObject
Passed model (binding)@Bindable@ObservedObject
Environment injectionenvironment(_:)environmentObject(_:)
Environment access@Environment(Type.self)@EnvironmentObject
Async on appear.task { }.onAppear { Task {} }
Value changeonChange(of:initial:_:)onChange(of:perform:)

Core Workflow

Sponsors

Details

Repository
github.com/johnrogers/claude-swift-engineering
Categories
Code Review & Quality, Mobile Development, Design & UI/UX, Video & Audio Editing
First seen
Jun 3, 2026

More from johnrogers/claude-swift-engineering

All 10
1octagonai avatarsec-analyst-masteroctagonai/skillsComprehensive SEC filing analyst skill that orchestrates all Octagon SEC analysis skills. Use when conducting due diligence, regulatory compliance review, M&A a260skills.sh installs
2jdrhyne avatarelegant-reportsjdrhyne/agent-skillsGenerate beautifully designed PDF reports with a Nordic/Scandinavian aesthetic. Use when creating polished executive briefings, analysis reports, or presentatio259skills.sh installs
3nexu-io avatarmagazine-posternexu-io/open-designAn editorial-style poster — newsprint paper, dateline, oversized serif headline with a struck-through word and italic accent, a 2-column body block, and 6 numbe259skills.sh installs
4bfollington avatarbevybfollington/termaThis skill should be used when working on Bevy game engine projects. It provides specialized knowledge for Bevy's Entity Component System (ECS) architecture, co257skills.sh installs
5martinholovsky avatarapi-expertmartinholovsky/claude-skills-generatorExpert API architect specializing in RESTful API design, GraphQL, gRPC, and API security. Deep expertise in OpenAPI 3.1, authentication patterns (OAuth2, JWT), 257skills.sh installs
6octagonai avatarratings-snapshotoctagonai/skillsRetrieve ratings snapshot with overall rating and key metric scores including DCF, ROE, ROA, Debt-to-Equity, P/E, and P/B for public companies. Use when screeni257skills.sh installs