SwiftUI
Open window / scene in SwiftUI 2.0 on macOS
Here is how to open a new window or re-activate an existing one in SwiftUI on macOS. In your ContentView create a button and open a URL for your app and another View e.g. Viewer to be shown in the window we will open: In your App add another WindowGroup Read more…