References cover views/modifiers, navigation, SwiftData, state management, Liquid Glass across platforms, and App Intents in depth.
Best practices: extract subviews once a view body exceeds ~30 lines, compose with ViewBuilder and modifiers, always include #Preview, use semantic colors (.primary/.secondary), add accessibility labels to icons, and adapt layout by size class.
SwiftUI Core
SwiftUI fundamentals shared across all Apple platforms.
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Analyze existing SwiftUI patterns
- fuse-ai-pilot:research-expert - Verify latest SwiftUI docs via Context7/Exa
- mcp__apple-docs__search_apple_docs - Check SwiftUI view patterns
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
When to Use
- Building SwiftUI views and components
- Implementing navigation (NavigationStack, SplitView)
- Data persistence with SwiftData
- State management (@State, @Observable)
- Custom view modifiers and layouts
Why SwiftUI Core
| Feature |
Benefit |
| Declarative UI |
Less code, automatic updates |
| Cross-platform |
Same code for iOS/macOS/watchOS/visionOS |
| @Observable |
Simple reactive state |
| SwiftData |
Modern persistence with minimal code |
Key Concepts
Views & Modifiers
Composable UI building blocks. Extract subviews at 30+ lines.
Navigation
NavigationStack for stack-based, NavigationSplitView for multi-column.
SwiftData
Modern persistence with @Model. Replaces Core Data for most use cases.
State Management
@State for local, @Observable for shared, @Environment for injection.
Reference Guide
| Need |
Reference |
| Views, modifiers, layouts |
views-modifiers.md |
| NavigationStack, deep linking |
navigation.md |
| SwiftData, @Query, CloudKit |
data-swiftdata.md |
| @State, @Observable, Environment |
state-management.md |
| Liquid Glass all platforms |
liquid-glass.md |
| Siri, Shortcuts, App Intents |
app-intents.md |
Best Practices
- Small views - Extract at 30+ lines
- Composition - Use ViewBuilder and modifiers
- Preview-driven - Always include #Preview
- Semantic colors - Use .primary, .secondary
- Accessibility - Add labels to icons
- Platform adaptation - Check sizeClass for responsive layouts
1---2name: swiftui-core3description: Use when building SwiftUI views, navigation, persistence, or state management — shared across iOS, macOS, watchOS, visionOS.4versions:5 swiftui: 66 ios: 267user-invocable: false8references: references/views-modifiers.md, references/navigation.md, references/data-swiftdata.md, references/state-management.md, references/liquid-glass.md, references/app-intents.md9related-skills: swift-core, solid-swift, ios, macos, ipados, watchos, visionos, tvos10metadata:11 source: https://skillmd.com/skills/fusengine/swiftui-core12---1314<objective>15Covers SwiftUI fundamentals shared across all Apple platforms: composable views and modifiers, navigation (NavigationStack for stack-based flows, NavigationSplitView for multi-column layouts), data persistence with SwiftData (@Model, replacing Core Data for most cases), state management (@State for local, @Observable for shared, @Environment for injection), Liquid Glass styling, and App Intents for Siri/Shortcuts integration.1617References cover views/modifiers, navigation, SwiftData, state management, Liquid Glass across platforms, and App Intents in depth.1819Best practices: extract subviews once a view body exceeds ~30 lines, compose with ViewBuilder and modifiers, always include #Preview, use semantic colors (.primary/.secondary), add accessibility labels to icons, and adapt layout by size class.20</objective>2122# SwiftUI Core2324SwiftUI fundamentals shared across all Apple platforms.2526## Agent Workflow (MANDATORY)2728Before ANY implementation, spawn 3 agents in parallel, one `Agent` call each with a `name`:29301. **fuse-ai-pilot:explore-codebase** - Analyze existing SwiftUI patterns312. **fuse-ai-pilot:research-expert** - Verify latest SwiftUI docs via Context7/Exa323. **mcp__apple-docs__search_apple_docs** - Check SwiftUI view patterns3334After implementation, run **fuse-ai-pilot:sniper** for validation.3536---3738## Overview3940### When to Use4142- Building SwiftUI views and components43- Implementing navigation (NavigationStack, SplitView)44- Data persistence with SwiftData45- State management (@State, @Observable)46- Custom view modifiers and layouts4748### Why SwiftUI Core4950| Feature | Benefit |51|---------|---------|52| Declarative UI | Less code, automatic updates |53| Cross-platform | Same code for iOS/macOS/watchOS/visionOS |54| @Observable | Simple reactive state |55| SwiftData | Modern persistence with minimal code |5657---5859## Key Concepts6061### Views & Modifiers62Composable UI building blocks. Extract subviews at 30+ lines.6364### Navigation65NavigationStack for stack-based, NavigationSplitView for multi-column.6667### SwiftData68Modern persistence with @Model. Replaces Core Data for most use cases.6970### State Management71@State for local, @Observable for shared, @Environment for injection.7273---7475## Reference Guide7677| Need | Reference |78|------|-----------|79| Views, modifiers, layouts | [views-modifiers.md](references/views-modifiers.md) |80| NavigationStack, deep linking | [navigation.md](references/navigation.md) |81| SwiftData, @Query, CloudKit | [data-swiftdata.md](references/data-swiftdata.md) |82| @State, @Observable, Environment | [state-management.md](references/state-management.md) |83| Liquid Glass all platforms | [liquid-glass.md](references/liquid-glass.md) |84| Siri, Shortcuts, App Intents | [app-intents.md](references/app-intents.md) |8586---8788## Best Practices89901. **Small views** - Extract at 30+ lines912. **Composition** - Use ViewBuilder and modifiers923. **Preview-driven** - Always include #Preview934. **Semantic colors** - Use .primary, .secondary945. **Accessibility** - Add labels to icons956. **Platform adaptation** - Check sizeClass for responsive layouts