UIMenuBuilder separators (Catalyst)

Has anyone figured out how to (in code) add separators between items in the menu bar in Catalyst/UIKitForMac?

Answered by developer555 in 375226022

You can get a group with separators by putting UIKeyCommands as children of a UIMenu, and set the menu's options to display inline.

Accepted Answer

You can get a group with separators by putting UIKeyCommands as children of a UIMenu, and set the menu's options to display inline.

UIMenuBuilder separators (Catalyst)
 
 
Q