swiftui
Installation
SKILL.md
SwiftUI Framework Guide
Applies to: SwiftUI 5.0+ (iOS 17+, macOS 14+, watchOS 10+, tvOS 17+, visionOS 1.0+) Language Guide: @.claude/skills/swift-guide/SKILL.md
Overview
SwiftUI is Apple's declarative UI framework for building native apps across all Apple platforms. It uses a reactive, data-driven approach where the UI automatically updates when state changes.
Use SwiftUI when:
- Building new Apple platform apps (iOS, macOS, watchOS, tvOS, visionOS)
- Cross-platform Apple development from a single codebase
- Declarative, reactive UI with minimal boilerplate
- Leveraging latest platform features (widgets, App Intents, Live Activities)
Consider alternatives when:
- Supporting iOS < 14 (use UIKit)
- Need fine-grained UIKit control (embed via
UIViewRepresentable) - Existing large UIKit codebase (migrate incrementally)
Related skills