Bring multiple windows to your SwiftUI app

RSS for tag

Discuss the WWDC22 Session Bring multiple windows to your SwiftUI app

Posts under wwdc2022-10061 tag

1 Post
Sort by:

Post

Replies

Boosts

Views

Activity

.commandsRemoved() does not work for the first scene.
.commandsRemoved() does not work for the Window and WindowGroup scenes if it’s the primary group (first one). Then I tried to add new menu using the code .commands {       CommandGroup(replacing: .newItem) {           Button("New Document") {               newDocument { TestDocument() }           }           .keyboardShortcut("n") } But app crashed with error " Expected subclass override" The test app is a document-based app, with a welcome window using the new Window scene.
1
0
995
Jul ’25