You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In AppKit, you can have a menu with submenus, and have the menu item that contains the submenu be checked. In SwiftUI, to have a menu item be checked we need to use Toggle or a Picker. This means, it’s impossible to get a menu item that is both checked and contains a submenu.
Use-case: I created a font picker using a Menu. Each item in the main menu is a font name. Some fonts have sub-types, which goes into a submenu, but I still want to show a checkmark for the main item, even if a subtype is checked too.
The text was updated successfully, but these errors were encountered:
Description
In AppKit, you can have a menu with submenus, and have the menu item that contains the submenu be checked. In SwiftUI, to have a menu item be checked we need to use
Toggle
or aPicker
. This means, it’s impossible to get a menu item that is both checked and contains a submenu.Use-case: I created a font picker using a
Menu
. Each item in the main menu is a font name. Some fonts have sub-types, which goes into a submenu, but I still want to show a checkmark for the main item, even if a subtype is checked too.The text was updated successfully, but these errors were encountered: