Home > Enterprise >  SwiftUI mac remove close item from files menu
SwiftUI mac remove close item from files menu

Time:12-30

In the file menu in every mac app, you will have this close menu item:

close menu item

How can I remove it in swiftUI?

Or is there a CommandGroupPlacement corresponding to it?

CodePudding user response:

CommandGroupPlacement.saveItem:

Includes the following by default on macOS:

  • Close
  • Save
  • Save As/Duplicate
  • Revert to Saved
  • Related