An object representing an alternative action for a command.


class UICommandAlternate : NSObject


Creating a Command Alternative

init(title: String, action: Selector, modifierFlags: UIKeyModifierFlags)

Creates a command alternative with the specified title, action, and modifier flags.

Getting Information About the Alternative

var title: String

The command alternative's title.

var action: Selector

The command alternative's action-method selector.

var modifierFlags: UIKeyModifierFlags

A bit mask of modifier flags for the command alternative.


Inherits From

See Also

Getting Command Alternatives

var alternates: [UICommandAlternate]

An array of alternative actions to take for the command.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software