Macos appkit bridge

From Xopoko/build-swift-apps · View interactive version

Macos appkit bridge is an AI agent skill from the GitHub repository Xopoko/build-swift-apps. macOS SwiftUI-AppKit bridges: implement NSViewRepresentable, NSViewControllerRepresentable, NSWindow, panels, responder chains, or menus only where pure SwiftUI cannot model the behavior.

How to use this skill

Skill file

macOS AppKit Bridge

Quick Start

Use this skill when SwiftUI is close but not quite enough for native macOS behavior.

Keep the bridge as small and explicit as possible. SwiftUI should usually remain

the source of truth, while AppKit handles the imperative edge.

Choose The Smallest Bridge

Workflow

  1. Name the capability gap precisely.
  1. Pick the smallest boundary that solves it.
  1. Keep ownership explicit.
  1. Expose a narrow interface back to SwiftUI.
  1. Validate lifecycle assumptions.

References

Guardrails

Output Expectations

Provide:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.