I also have the same question and no clue on how to resolve this thus far. The way I see this is that the viewmodel (when working with MVVM) needs to get instantiate below the definition of the WindowGroup, making it unavailable for the .commands modifier. What are we missing here?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: