Post

Replies

Boosts

Views

Activity

Reply to How can I support macOS 10.15 while using SwiftUI's new App type
Sorry, my question may not have been entirely clear. I've got an @availability check around the new stuff. What I needed to do was create a main.swift file that does the switching between the new type which conforms to App and the older AppDelegate implementation. This ended up looking like the following. if #available(macOS 10.16, *) {   MyAwesomeNewImplementaitonOfApp.main() } else {   let app = NSApplication.shared   let delegate = AppDelegate()   app.delegate = delegate   app.run() }
Jun ’20