Instance Method

apply(_:)

Calls the provided closure on the NSMenuItem, allowing you to apply arbitrary changes.

Declaration

func apply(_ modifier: @escaping CustomMenuItem<Item>.Modifier) -> CustomMenuItem<Item>