Post

Replies

Boosts

Views

Activity

Does the new SwiftUI App Lifecycle support new windows on macOS/iPadOS?
In the AppKit lifecycle it was possible to open new windows by calling showWindow(_ sender: Any?) on an NSWindowController instance, whether it was initialized via a storyboard or via code alone. I see that on macOS in the new SwiftUI Lifecycle you can create a new window by default using ⌘N, but it's a new copy of the existing window. Can we declare a completely unique scene and open it in a new window? I saw that it was possible to declare custom scenes - https://developer.apple.com/documentation/swiftui/scene, but how do we invoke them if they aren't the default scene at startup? Thanks!
6
0
5.7k
Jun ’20