Instance Method

image(_:)

Sets the image associated with this menu item.

Declaration

func image(_ image: NSImage) -> Self

Example


MenuItem(file.name)
    .image(NSImage(named: file.iconName))

See Also

Appearance