init
TypeScriptstatic initCoder(coder: _Foundation_NSCoder): Promise<(UIMenu) | null>Swift declarationinit?(coder: NSCoder)class · iOS 13.0+ · SDK 27.1
@MainActor class UIMenustatic initCoder(coder: _Foundation_NSCoder): Promise<(UIMenu) | null>Swift declarationinit?(coder: NSCoder)replacingChildren(newChildren: Array<UIMenuElement>): Promise<UIMenu>Swift declarationfunc replacingChildren(_ newChildren: [UIMenuElement]) -> UIMenuget children(): Promise<Array<UIMenuElement>>Swift declarationvar children: [UIMenuElement] { get }get displayPreferences(): Promise<(UIMenuDisplayPreferences) | null>Swift declaration@NSCopying var displayPreferences: UIMenuDisplayPreferences? { get set }setDisplayPreferences(value?: (UIMenuDisplayPreferences) | null): Promise<void>Swift declaration@NSCopying var displayPreferences: UIMenuDisplayPreferences? { get set }get identifier(): Promise<UIMenu_Identifier>Swift declarationvar identifier: UIMenu.Identifier { get }get options(): Promise<UIMenu_Options>Swift declarationvar options: UIMenu.Options { get }get preferredElementSize(): Promise<UIMenu_ElementSize>Swift declarationvar preferredElementSize: UIMenu.ElementSize { get set }setPreferredElementSize(value: UIMenu_ElementSize): Promise<void>Swift declarationvar preferredElementSize: UIMenu.ElementSize { get set }get selectedElements(): Promise<Array<UIMenuElement>>Swift declarationvar selectedElements: [UIMenuElement] { get }static initTitleImageIdentifierOptionsChildren(title?: string, image?: (UIImage) | null, identifier?: (UIMenu_Identifier) | null, options?: UIMenu_Options, children?: Array<UIMenuElement>): Promise<UIMenu>Swift declaration@MainActor @preconcurrency convenience init(title: String = "", image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], children: [UIMenuElement] = [])static initTitleSubtitleImageIdentifierOptionsPreferredElementSizeChildren(title?: string, subtitle?: (string) | null, image?: (UIImage) | null, identifier?: (UIMenu_Identifier) | null, options?: UIMenu_Options, preferredElementSize?: UIMenu_ElementSize, children?: Array<UIMenuElement>): Promise<UIMenu>Swift declaration@MainActor @preconcurrency convenience init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), children: [UIMenuElement] = [])static initTitleSubtitleImageIdentifierOptionsChildren(title?: string, subtitle?: (string) | null, image?: (UIImage) | null, identifier?: (UIMenu_Identifier) | null, options?: UIMenu_Options, children?: Array<UIMenuElement>): Promise<UIMenu>Swift declaration@MainActor @preconcurrency convenience init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], children: [UIMenuElement] = [])static initTitleSubtitleImagePreferredImageVisibilityIdentifierOptionsPreferredElementSizeChildren(title?: string, subtitle?: (string) | null, image?: (UIImage) | null, preferredImageVisibility?: UIMenuElement_ImageVisibility, identifier?: (UIMenu_Identifier) | null, options?: UIMenu_Options, preferredElementSize?: UIMenu_ElementSize, children?: Array<UIMenuElement>): Promise<UIMenu>Swift declaration@MainActor @preconcurrency convenience init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, preferredImageVisibility: UIMenuElement.ImageVisibility = .automatic, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = .automatic, children: [UIMenuElement] = [])1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UIMenu.init()
inherited init: cannot prove legal (class declares 4 custom initializers)