What happened to primaryAction in Menu?

According to WWDC video and documentation this code should work:

Menu {
    Button(action: addCurrentTabToReadingList) {
        Label("Add to Reading List", systemImage: "eyeglasses")
    }
    Button(action: bookmarkAll) {
        Label("Add Bookmarks for All Tabs", systemImage: "book")
    }
    Button(action: show) {
        Label("Show All Bookmarks", systemImage: "books.vertical")
    }
} label: {
    Label("Add Bookmark", systemImage: "book")
} primaryAction: {
    addBookmark()
}

However when I try it, it throws an error: Extra argument in call for primaryAction

any ideas?

(latest beta MacOS, and latest Xcode)

Can you clarify the exact version of your Xcode? If you are using the released version of Xcode 13, it does not contain macOS SDK 12, so you cannot use Menu(content:label:primaryAction:) as shown in the doc of the initializer.

The released version (at the time I'm writing this) of Xcode is (13.0 13A233). There is no beta available as far as I can see in the available downloads... Unless you can point me to the link.... cheers

As I wrote, the released version of Xcode 13 (13A233) does not contain macOS SDK 12. You can find older betas on More Downloads pages.

but It's the SAME build number! (the release AND the beta!).

What happened to primaryAction in Menu?
 
 
Q