How do I restrict an application to only one window in SwiftUI for macOS? Many Apple applications such as the Notes and the Developer app do not allow creation of another Window. I am wondering how to go about implementing similar behavior in SwiftUI.
I found that this behavior is allowed by default. Essentially, I am trying to eliminate this option here for New Window:
