sectionHeader(withTitle:)
Returns a menu item representing a section header for a logical grouping of menu commands.
Declaration
static func sectionHeader(withTitle title: String) -> NSMenuItemParameters
- title:
The title string to display on the section header.
Discussion
Use section headers to provide context to a group of menu items. Items created using this method are non-interactive and don’t perform actions.