Xcode 27, released at WWDC 2026, ships with a SwiftUI Specialist Agent Skill — a compact set of Markdown reference files that guide AI agents toward SwiftUI best practices. The skill covers view invalidation boundaries, data flow with @State/@Observable, the dangers of the .if view modifier, stable ForEach identity, cheap view inits, and single-root List rows. Each reference file is loaded on demand to minimize token usage. The author analyzes what Apple included and what's missing (accessibility, NavigationStack patterns, layout, macOS, Swift Charts, etc.), then announces SwiftUI Expert Skill 4.0.0, an open-source skill that merges Apple's guidance with broader coverage.
Table of contents
A look at the structure of the skillWhat’s in the SKILLS.md?Best practices according to the reference filesWhat is missing from the SwiftUI Agent Skill?The best of both worlds: introducing SwiftUI Expert Skill 4.0.0398 Impressions