init
TypeScriptstatic init(coder: _Foundation_NSCoder): Promise<(UICommand) | null>Swift declarationinit?(coder: NSCoder)class · iOS 13.0+ · SDK 27.1
@MainActor class UICommandstatic init(coder: _Foundation_NSCoder): Promise<(UICommand) | null>Swift declarationinit?(coder: NSCoder)get alternates(): Promise<Array<UICommandAlternate>>Swift declarationvar alternates: [UICommandAlternate] { get }get attributes(): Promise<UIMenuElement_Attributes>Swift declarationvar attributes: UIMenuElement.Attributes { get set }setAttributes(value: UIMenuElement_Attributes): Promise<void>Swift declarationvar attributes: UIMenuElement.Attributes { get set }get discoverabilityTitle(): Promise<(string) | null>Swift declarationvar discoverabilityTitle: String? { get set }setDiscoverabilityTitle(value?: (string) | null): Promise<void>Swift declarationvar discoverabilityTitle: String? { get set }get image(): Promise<(UIImage) | null>Swift declaration@NSCopying var image: UIImage? { get set }setImage(value?: (UIImage) | null): Promise<void>Swift declaration@NSCopying var image: UIImage? { get set }get propertyList(): Promise<(unknown) | null>Swift declarationvar propertyList: Any? { get }get state(): Promise<UIMenuElement_State>Swift declarationvar state: UIMenuElement.State { get set }setState(value: UIMenuElement_State): Promise<void>Swift declarationvar state: UIMenuElement.State { get set }get title(): Promise<string>Swift declarationvar title: String { get set }setTitle(value: string): Promise<void>Swift declarationvar title: String { get set }6 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UICommand.init(title:image:action:propertyList:alternates:discoverabilityTitle:attributes:state:)
Objective-C selectors cannot cross the bridge.
UICommand.init(title:subtitle:image:action:propertyList:alternates:discoverabilityTitle:attributes:state:)
Objective-C selectors cannot cross the bridge.
UICommand.init(title:subtitle:image:selectedImage:action:propertyList:alternates:discoverabilityTitle:attributes:state:)
Objective-C selectors cannot cross the bridge.
UICommand.init(title:subtitle:image:selectedImage:preferredImageVisibility:action:propertyList:alternates:discoverabilityTitle:attributes:state:)
Objective-C selectors cannot cross the bridge.
UICommand.action
Objective-C selectors cannot cross the bridge.
UICommand.init()
inherited init: cannot prove legal (class declares 4 custom initializers)