Question : swift 5 macos close app
Answered by : nathan-hedgeman
@IBAction func ExitNow(sender: AnyObject) { NSApplication.shared.terminate(self)
}
Source : https://stackoverflow.com/questions/25274567/quitting-xcode-cocoa-swift-app | Last Update : Thu, 30 Sep 21