From Build Swift Apps
Refactors macOS SwiftUI views/scenes into small stable subviews, explicit scene roots, command/toolbar ownership, scene-aware state, and narrow AppKit bridges.
How this skill is triggered — by the user, by Claude, or both
Slash command
/build-swift-apps:macos-view-architectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Refactor macOS SwiftUI toward explicit scene structure and focused files. Use `macos-swiftui-architect` for missing desktop patterns and `macos-appkit-bridge` for true AppKit boundaries.
Refactor macOS SwiftUI toward explicit scene structure and focused files. Use macos-swiftui-architect for missing desktop patterns and macos-appkit-bridge for true AppKit boundaries.
App/<AppName>App.swift: @main app and minimal delegate only.Views/*: root composition and feature UI.Models/*: values, IDs, selection enums.Stores/*: state stores.Services/*: network, app-server, process clients.Support/*: small formatters/resolvers/extensions.some View fragments; pass explicit data, bindings, and actions.body.@SceneStorage for per-window ephemeral state and @AppStorage for durable preferences.@Observable owners, use @State; on older targets use @StateObject/@ObservedObject.2plugins reuse this skill
First indexed Jun 4, 2026
npx claudepluginhub xopoko/build-swift-apps --plugin build-swift-appsGuides building macOS SwiftUI apps with proper scene architecture, state ownership, and desktop UI patterns.
Refactors large SwiftUI views into small, explicit subview types with stable data flow. Splits long body implementations, enforces MV pattern, and prefers dedicated View types over computed helpers.
Refactors Swift/SwiftUI code into a modular MVVM-C architecture with @Observable ViewModels, coordinator pattern, and Domain/Data/Feature/App package boundaries. Use when migrating to iOS 26 / Swift 6.2 clinic architecture.