SwiftUI macOS, Multiple DocumentGroups is missing something.

Adding a second "DocumentGroup" to a document based SwiftUI auto converts the "New" menu item into a submenu, with one item "New Document".

I'd like to add a second item to that submenu, to create a new instance of my second doc type. Googling around finds one solution, but that doesn't work as I'd expect it to with Ventura 13.6.5 and Xcode 15.2.

The solution linked to below, adds a menuitem under the "Open Recent" menu, not in the "New" submenu. https://github.com/Asperi-Demo/4SwiftUI/blob/master/Answers/Handle_different_document_types.md

Changing the position to "before", also doesn't add it to the menu, and if you replace ".newItem", you then have to manually handle the Open dialog and the Open Recent menu.

So what am I missing?

The same question here. Also, that submenu suggests that every document group should have its item there. But that's not how it works. What are we missing here?

SwiftUI macOS, Multiple DocumentGroups is missing something.
 
 
Q