When working with an Xcode project:
When working with a Swift Package Manager manifest:
Select a package version:
v1.0.0
main
Create SwiftUI Views able to access host windows from UIKit (iOS & tvOS) or AppKit (macOS), with zero set up. Works for existing apps, apps with @main/App, and even Playgrounds