Before beta 4 this worked as expected. After updating to beta 4, all my UICommands inside UIMenu on NSMenuToolbarItem.itemMenu are now disabled, and I can't figure out how to enable them.
Here's my itemForItemIdentifier method:
Am I doing something wrong or is this a bug on macOS Big Sur beta 4?
Here's my itemForItemIdentifier method:
Code Block func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? { let item = NSMenuToolbarItem(itemIdentifier: itemIdentifier) item.itemMenu = UIMenu(title: "", options: .displayInline, children: [UICommand(title: "Test", action: #selector(onTestTap))]) item.image = UIImage(systemName: "ellipsis.circle") return item }
Am I doing something wrong or is this a bug on macOS Big Sur beta 4?