swiftUI how to Hide window instead of closing it when click the close button on MacOS swiftUI how to Hide window instead of closing it when click the close button on MacOS. UI Frameworks SwiftUI macOS SwiftUI 1 0 2.2k May ’22