Instance Method
apply(_:)
Calls the provided closure on the
NSMenuItem
, allowing you to apply arbitrary changes.Framework
- Menu
Builder
Declaration
func apply(_ modifier: @escaping CustomMenuItem <Item>.Modifier) -> CustomMenuItem <Item>