Is there a way to open SwiftUI windows in App Kit on macOS?
Asked on 2025-07-15
1 search
Yes, you can open SwiftUI windows in AppKit on macOS using Scene Bridging. Scene Bridging allows your AppKit lifecycle apps to interoperate with SwiftUI scenes. This means you can request SwiftUI scenes from your AppKit code, enabling you to open SwiftUI-only scene types or use SwiftUI-exclusive features directly from AppKit. This integration is part of the enhancements introduced in recent updates to SwiftUI and AppKit.
For more details, you can refer to the session Set the scene with SwiftUI in visionOS (22:16) where Scene Bridging is discussed.

What’s new in AppKit
Discover the latest advances in Mac app development. Get an overview of the new features in macOS Sequoia, and how to adopt them in your app. Explore new ways to integrate your existing code with SwiftUI. Learn about the improvements made to numerous AppKit controls, like toolbars, menus, text input, and more.

What’s new in SwiftUI
Learn what’s new in SwiftUI to build great apps for any Apple platform. We’ll explore how to give your app a brand new look and feel with Liquid Glass. Discover how to boost performance with framework enhancements and new instruments, and integrate advanced capabilities like web content and rich text editing. We’ll also show you how SwiftUI is expanding to more places, including laying out views in three dimensions.

Set the scene with SwiftUI in visionOS
Discover exciting new APIs to enhance windows, volumes, and immersive spaces in your visionOS app. Fine tune the behavior of your scenes when relaunched or locked in place. Make volumes adapt to their surroundings with clipping margins and snapping. Stream immersive content from Mac to Vision Pro. Elevate your existing UIKit-based apps with volumes and immersive spaces.