appkit-swiftui-bridge

Bridge AppKit and SwiftUI views using NSViewRepresentable and Combine state management.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/kmshdev/claude-swift-toolkit --skill appkit-swiftui-bridge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appkit-swiftui-bridge
Source: https://github.com/kmshdev/claude-swift-toolkit/tree/main/skills/macos-development/appkit-swiftui-bridge
Command: npx skills add https://github.com/kmshdev/claude-swift-toolkit --skill appkit-swiftui-bridge

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bridges AppKit and SwiftUI to enable hybrid macOS UI development, allowing developers to reuse AppKit components inside SwiftUI and progressively migrate interfaces.

Core Features & Use Cases

  • NSViewRepresentable: Wrap AppKit views for integration in SwiftUI.
  • Hosting controllers: Use NSHostingController/NSHostingView to embed SwiftUI in AppKit apps.
  • State bridging: Share and synchronize state between frameworks using Combine and Observable.
  • Use Case: Migrate a large AppKit-based window to SwiftUI in stages while preserving behavior.

Quick Start

Create an NSViewRepresentable wrapper for a target AppKit view and integrate it with a SwiftUI view using an NSHostingController to begin bridging.

Frequently Asked Questions about appkit-swiftui-bridge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I embed an AppKit view inside a SwiftUI macOS app?

Reuse AppKit views in SwiftUI by creating an NSViewRepresentable wrapper for the target component, which bridges the AppKit view into the SwiftUI layout hierarchy.

What is the best way to migrate a large AppKit window to SwiftUI?

Migrate large AppKit windows to SwiftUI progressively by using NSHostingController to embed new SwiftUI modules within existing AppKit layouts, replacing components in stages while preserving behavior.

How do I synchronize state between AppKit and SwiftUI using Combine?

Synchronize state between AppKit and SwiftUI using Combine and Observable objects to share data and coordinate updates seamlessly across both frameworks during hybrid macOS UI development.

Can I use NSHostingController to integrate SwiftUI views in an AppKit application?

Use NSHostingController or NSHostingView to embed SwiftUI views within AppKit applications, enabling hybrid macOS UI development and allowing you to adopt SwiftUI without rewriting your entire app.