SwiftUI
Open window / scene in SwiftUI 2.0 on macOS
Update June 2022: windowing APIs have now been added so the code below might not be the best way to implement it. 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 Read more…