Instance Property

image

The key command's image.

Declaration

@NSCopying var image: UIImage? { get set }

Discussion

Only the context command system supports the display of an image, and only when the app is running in iOS.

See Also

Getting Information About the Key Command

var title: String

The key command's title.

var input: String?

The string of characters corresponding to the keys that must be pressed to match this key command.

var action: Selector?

The command's action-method selector.

var modifierFlags: UIKeyModifierFlags

The bit mask of modifier flags that must be pressed to match this key command.

var discoverabilityTitle: String?

An elaborated title that explains the purpose of the key command.

var attributes: UIMenuElement.Attributes

The attributes indicating the style of the key command.

var state: UIMenuElement.State

The state of the key command.