It does work, but only if you haven't run the app previously, such that the system "remembers" a non-default size that was used then, or if you manage to reset that memory.
There may be a simpler way to do that, but so far the only reliable way I've found is to:
delete the reference to my app in ~/Library/Application\ Support/com.apple.windowmanager/state.plist and resave it
delete my app's folder in ~/Library/Containers/ (that's for a sandboxed app, it may otherwise be under Preferences)
empty the trash
restart the Mac
Also, so far I've only tested this with the Window scene rather than WindowGroup. But it was apparently not working with Window either till I managed to clear the previous non-default size using the steps above.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: