swiftui-core

Installation
SKILL.md

SwiftUI Core Patterns

Modern SwiftUI patterns for views, navigation, state, toolbars, and text editing.

Critical Constraints

  • NavigationView → ✅ NavigationSplitView (sidebar/detail) or NavigationStack (push/pop)
  • @StateObject → ✅ @State with @Observable classes (macOS 14+)
  • @ObservedObject → ✅ direct property or @Bindable for bindings
  • @EnvironmentObject → ✅ @Environment with custom key
  • toolbar { } without IDs for customizable toolbars → ✅ toolbar(id:) with ToolbarItem(id:)
  • ❌ Old .searchable without behavior → ✅ Add .searchToolbarBehavior(.minimize) for space efficiency
  • ❌ Plain String in TextEditor for rich text → ✅ Use AttributedString binding

Reference Index

Related skills

More from makgunay/claude-swift-skills

Installs
14
First Seen
Feb 14, 2026