Creating a context menu via UIContextMenuConfiguration creates the NSMenu as expected on Mac Catalyst but how do I add separator menu items? https://developer.apple.com/documentation/appkit/nsmenuitem/1514838-separatoritem?language=objc
I'm talking about context menus that are shown via right-click, not the menu bar.
I have a couple submenus with children I'd like to group together in the context menu. Apparently wrapping them in parent menu like this is how you create a separator:
UIMenu *wrapperMenu = [UIMenu menuWithTitle:@"" image:nil identifier:nil options:UIMenuOptionsDisplayInline children:childrenToWrap];
Pretty convoluted but at least it's possible 👍🏻 Tried this earlier and it wasn't working because I think I was hitting the issue where Xcode wasn't compiling the latest code until I cleaned the build folder.