macos-app-structure

Installation
SKILL.md

macOS App Structure

Critical Constraints

  • ❌ DO NOT use iOS-only scenes (TabView as root scene) → ✅ Use WindowGroup, Window, or NavigationSplitView
  • ❌ DO NOT use UIApplicationDelegate → ✅ Use NSApplicationDelegateAdaptor for AppKit hooks
  • ❌ DO NOT forget Settings scene for Preferences → ✅ macOS apps should have a Settings scene
  • ❌ DO NOT assume single-window → ✅ macOS apps can have multiple windows; design for it
  • ❌ DO NOT use iOS navigation patterns → ✅ Use NavigationSplitView (sidebar + detail) for macOS

Standard macOS App

import SwiftUI

@main
struct MyApp: App {
    @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
Related skills

More from makgunay/claude-swift-skills

Installs
32
First Seen
Feb 14, 2026