.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.