addButton
TypeScriptaddButton(title?: (string) | null): Promise<number>Swift declarationfunc addButton(withTitle title: String?) -> Intclass · iOS 2.0+ · Deprecated in iOS 8.3 · SDK 27.1
@MainActor class UIActionSheetaddButton(title?: (string) | null): Promise<number>Swift declarationfunc addButton(withTitle title: String?) -> IntbuttonTitle(buttonIndex: number): Promise<(string) | null>Swift declarationfunc buttonTitle(at buttonIndex: Int) -> String?dismiss(buttonIndex: number, animated: boolean): Promise<void>Swift declarationfunc dismiss(withClickedButtonIndex buttonIndex: Int, animated: Bool)static init(title?: (string) | null, delegate?: (Implements<UIActionSheetDelegate> | SDKHandle) | null, cancelButtonTitle?: (string) | null, destructiveButtonTitle?: (string) | null): Promise<UIActionSheet>Swift declarationinit(title: String?, delegate: (any UIActionSheetDelegate)?, cancelButtonTitle: String?, destructiveButtonTitle: String?)showFromAnimated(item: UIBarButtonItem, animated: boolean): Promise<void>Swift declarationfunc show(from item: UIBarButtonItem, animated: Bool)showFromInAnimated(rect: { x: number; y: number; width: number; height: number }, view: UIView, animated: boolean): Promise<void>Swift declarationfunc show(from rect: CGRect, in view: UIView, animated: Bool)showFrom(view: UITabBar): Promise<void>Swift declarationfunc show(from view: UITabBar)showFrom51681(view: UIToolbar): Promise<void>Swift declarationfunc show(from view: UIToolbar)showIn(view: UIView): Promise<void>Swift declarationfunc show(in view: UIView)get actionSheetStyle(): Promise<UIActionSheetStyle>Swift declarationvar actionSheetStyle: UIActionSheetStyle { get set }setActionSheetStyle(value: UIActionSheetStyle): Promise<void>Swift declarationvar actionSheetStyle: UIActionSheetStyle { get set }get cancelButtonIndex(): Promise<number>Swift declarationvar cancelButtonIndex: Int { get set }setCancelButtonIndex(value: number): Promise<void>Swift declarationvar cancelButtonIndex: Int { get set }get delegate(): Promise<(SDKHandle) | null>Swift declarationweak var delegate: (any UIActionSheetDelegate)? { get set }setDelegate(value?: (Implements<UIActionSheetDelegate> | SDKHandle) | null): Promise<void>Swift declarationweak var delegate: (any UIActionSheetDelegate)? { get set }get destructiveButtonIndex(): Promise<number>Swift declarationvar destructiveButtonIndex: Int { get set }setDestructiveButtonIndex(value: number): Promise<void>Swift declarationvar destructiveButtonIndex: Int { get set }get firstOtherButtonIndex(): Promise<number>Swift declarationvar firstOtherButtonIndex: Int { get }get numberOfButtons(): Promise<number>Swift declarationvar numberOfButtons: Int { get }get title(): Promise<string>Swift declarationvar title: String { get set }setTitle(value: string): Promise<void>Swift declarationvar title: String { get set }get isVisible(): Promise<boolean>Swift declarationvar isVisible: Bool { get }2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UIActionSheet.init(title:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:_:)
A variable number of Swift arguments is not supported.
UIActionSheet.init()
inherited init: cannot prove legal (class declares 2 custom initializers)