Dynamic menu items in SwiftUI CommandMenu?

Is it possible to set the isAlternate property on an NSMenuItem in the macOS menubar to implement dynamic menu items in a SwiftUI document-based app which uses CommandMenu to construct the menus?

Post not yet marked as solved Up vote post of avitzur Down vote post of avitzur
  • I have the same question. Did you find an answer? I've tried a few things, but nothing works so far. I'm thinking of going back to AppKit for the main menu.

Add a Comment