Why does it need to be so difficult replacing the default menu items in a native #macOS app???
Like, it's not because the code is super difficult and complex. In fact, the code is really simple, but there is just no documentation provided by Apple on how to manipulate the default menu items, like 'Close' in 'File' menu with the `CMD + W` shortcut.
I tried using `CommandGroup(replacing: .saveItem)` and then providing the function I would like to call whenever the user clicks the shortcut `CMD + W`. But no, that didn't work.
Googled with limited success, but eventually found something useful on Stackoverflow:

Stack Overflow
SwiftUI Update the mainMenu [SOLVED] kludgey
The Real Question

How do you update the mainMenu in SwiftUI so that it actually works?

I have built a MacOS Document Based applic...
