init
TypeScriptstatic initType(buttonType: UIButton_ButtonType): Promise<UIButton>Swift declarationconvenience init(type buttonType: UIButton.ButtonType)class · iOS 2.0+ · SDK 27.1
@MainActor class UIButtonstatic initType(buttonType: UIButton_ButtonType): Promise<UIButton>Swift declarationconvenience init(type buttonType: UIButton.ButtonType)attributedTitle(state: UIControl_State): Promise<(_Foundation_NSAttributedString) | null>Swift declarationfunc attributedTitle(for state: UIControl.State) -> NSAttributedString?backgroundImage(state: UIControl_State): Promise<(UIImage) | null>Swift declarationfunc backgroundImage(for state: UIControl.State) -> UIImage?backgroundRect(bounds: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>Swift declarationfunc backgroundRect(forBounds bounds: CGRect) -> CGRectcontentRect(bounds: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>Swift declarationfunc contentRect(forBounds bounds: CGRect) -> CGRectimage(state: UIControl_State): Promise<(UIImage) | null>Swift declarationfunc image(for state: UIControl.State) -> UIImage?imageRect(contentRect: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>Swift declarationfunc imageRect(forContentRect contentRect: CGRect) -> CGRectstatic initCoder(coder: _Foundation_NSCoder): Promise<(UIButton) | null>Swift declarationinit?(coder: NSCoder)static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<UIButton>Swift declarationinit(frame: CGRect)static initFramePrimaryAction(frame: { x: number; y: number; width: number; height: number }, primaryAction?: (UIAction) | null): Promise<UIButton>Swift declarationconvenience init(frame: CGRect, primaryAction: UIAction?)preferredSymbolConfigurationForImage(state: UIControl_State): Promise<(UIImage_SymbolConfiguration) | null>Swift declarationfunc preferredSymbolConfigurationForImage(in state: UIControl.State) -> UIImage.SymbolConfiguration?setAttributedTitle(title: (_Foundation_NSAttributedString) | null, state: UIControl_State): Promise<void>Swift declarationfunc setAttributedTitle(_ title: NSAttributedString?, for state: UIControl.State)setBackgroundImage(image: (UIImage) | null, state: UIControl_State): Promise<void>Swift declarationfunc setBackgroundImage(_ image: UIImage?, for state: UIControl.State)setImage(image: (UIImage) | null, state: UIControl_State): Promise<void>Swift declarationfunc setImage(_ image: UIImage?, for state: UIControl.State)setNeedsUpdateConfiguration(): Promise<void>Swift declarationfunc setNeedsUpdateConfiguration()setPreferredSymbolConfiguration(configuration: (UIImage_SymbolConfiguration) | null, state: UIControl_State): Promise<void>Swift declarationfunc setPreferredSymbolConfiguration(_ configuration: UIImage.SymbolConfiguration?, forImageIn state: UIControl.State)setTitle(title: (string) | null, state: UIControl_State): Promise<void>Swift declarationfunc setTitle(_ title: String?, for state: UIControl.State)setTitleColor(color: (UIColor) | null, state: UIControl_State): Promise<void>Swift declarationfunc setTitleColor(_ color: UIColor?, for state: UIControl.State)setTitleShadowColor(color: (UIColor) | null, state: UIControl_State): Promise<void>Swift declarationfunc setTitleShadowColor(_ color: UIColor?, for state: UIControl.State)titleColor(state: UIControl_State): Promise<(UIColor) | null>Swift declarationfunc titleColor(for state: UIControl.State) -> UIColor?title(state: UIControl_State): Promise<(string) | null>Swift declarationfunc title(for state: UIControl.State) -> String?titleRect(contentRect: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>Swift declarationfunc titleRect(forContentRect contentRect: CGRect) -> CGRecttitleShadowColor(state: UIControl_State): Promise<(UIColor) | null>Swift declarationfunc titleShadowColor(for state: UIControl.State) -> UIColor?updateConfiguration(): Promise<void>Swift declarationfunc updateConfiguration()get adjustsImageWhenDisabled(): Promise<boolean>Swift declarationvar adjustsImageWhenDisabled: Bool { get set }setAdjustsImageWhenDisabled(value: boolean): Promise<void>Swift declarationvar adjustsImageWhenDisabled: Bool { get set }get adjustsImageWhenHighlighted(): Promise<boolean>Swift declarationvar adjustsImageWhenHighlighted: Bool { get set }setAdjustsImageWhenHighlighted(value: boolean): Promise<void>Swift declarationvar adjustsImageWhenHighlighted: Bool { get set }get automaticallyUpdatesConfiguration(): Promise<boolean>Swift declarationvar automaticallyUpdatesConfiguration: Bool { get set }setAutomaticallyUpdatesConfiguration(value: boolean): Promise<void>Swift declarationvar automaticallyUpdatesConfiguration: Bool { get set }get behavioralStyle(): Promise<UIBehavioralStyle>Swift declarationvar behavioralStyle: UIBehavioralStyle { get }get buttonType(): Promise<UIButton_ButtonType>Swift declarationvar buttonType: UIButton.ButtonType { get }get changesSelectionAsPrimaryAction(): Promise<boolean>Swift declarationvar changesSelectionAsPrimaryAction: Bool { get set }setChangesSelectionAsPrimaryAction(value: boolean): Promise<void>Swift declarationvar changesSelectionAsPrimaryAction: Bool { get set }get configurationUpdateHandler(): Promise<(((arg0: UIButton) => Promise<void>)) | null>Swift declarationvar configurationUpdateHandler: UIButton.ConfigurationUpdateHandler? { get set }setConfigurationUpdateHandler(value?: (((arg0: UIButton) => void)) | null): Promise<void>Swift declarationvar configurationUpdateHandler: UIButton.ConfigurationUpdateHandler? { get set }get contentEdgeInsets(): Promise<{ top: number; left: number; bottom: number; right: number }>Swift declarationvar contentEdgeInsets: UIEdgeInsets { get set }setContentEdgeInsets(value: { top: number; left: number; bottom: number; right: number }): Promise<void>Swift declarationvar contentEdgeInsets: UIEdgeInsets { get set }get currentAttributedTitle(): Promise<(_Foundation_NSAttributedString) | null>Swift declarationvar currentAttributedTitle: NSAttributedString? { get }get currentBackgroundImage(): Promise<(UIImage) | null>Swift declarationvar currentBackgroundImage: UIImage? { get }get currentImage(): Promise<(UIImage) | null>Swift declarationvar currentImage: UIImage? { get }get currentPreferredSymbolConfiguration(): Promise<(UIImage_SymbolConfiguration) | null>Swift declarationvar currentPreferredSymbolConfiguration: UIImage.SymbolConfiguration? { get }get currentTitle(): Promise<(string) | null>Swift declarationvar currentTitle: String? { get }get currentTitleColor(): Promise<UIColor>Swift declarationvar currentTitleColor: UIColor { get }get currentTitleShadowColor(): Promise<(UIColor) | null>Swift declarationvar currentTitleShadowColor: UIColor? { get }get isHeld(): Promise<boolean>Swift declarationvar isHeld: Bool { get }get isHovered(): Promise<boolean>Swift declarationvar isHovered: Bool { get }get imageEdgeInsets(): Promise<{ top: number; left: number; bottom: number; right: number }>Swift declarationvar imageEdgeInsets: UIEdgeInsets { get set }setImageEdgeInsets(value: { top: number; left: number; bottom: number; right: number }): Promise<void>Swift declarationvar imageEdgeInsets: UIEdgeInsets { get set }get imageView(): Promise<(UIImageView) | null>Swift declarationvar imageView: UIImageView? { get }get menu(): Promise<(UIMenu) | null>Swift declaration@NSCopying var menu: UIMenu? { get set }setMenu(value?: (UIMenu) | null): Promise<void>Swift declaration@NSCopying var menu: UIMenu? { get set }get isPointerInteractionEnabled(): Promise<boolean>Swift declarationvar isPointerInteractionEnabled: Bool { get set }setIsPointerInteractionEnabled(value: boolean): Promise<void>Swift declarationvar isPointerInteractionEnabled: Bool { get set }get preferredBehavioralStyle(): Promise<UIBehavioralStyle>Swift declarationvar preferredBehavioralStyle: UIBehavioralStyle { get set }setPreferredBehavioralStyle(value: UIBehavioralStyle): Promise<void>Swift declarationvar preferredBehavioralStyle: UIBehavioralStyle { get set }get preferredMenuElementOrder(): Promise<UIContextMenuConfiguration_ElementOrder>Swift declarationvar preferredMenuElementOrder: UIContextMenuConfiguration.ElementOrder { get set }setPreferredMenuElementOrder(value: UIContextMenuConfiguration_ElementOrder): Promise<void>Swift declarationvar preferredMenuElementOrder: UIContextMenuConfiguration.ElementOrder { get set }get reversesTitleShadowWhenHighlighted(): Promise<boolean>Swift declarationvar reversesTitleShadowWhenHighlighted: Bool { get set }setReversesTitleShadowWhenHighlighted(value: boolean): Promise<void>Swift declarationvar reversesTitleShadowWhenHighlighted: Bool { get set }get role(): Promise<UIButton_Role>Swift declarationvar role: UIButton.Role { get set }setRole(value: UIButton_Role): Promise<void>Swift declarationvar role: UIButton.Role { get set }get showsTouchWhenHighlighted(): Promise<boolean>Swift declarationvar showsTouchWhenHighlighted: Bool { get set }setShowsTouchWhenHighlighted(value: boolean): Promise<void>Swift declarationvar showsTouchWhenHighlighted: Bool { get set }get subtitleLabel(): Promise<(UILabel) | null>Swift declarationvar subtitleLabel: UILabel? { get }get tintColor(): Promise<(UIColor) | null>Swift declarationvar tintColor: UIColor! { get set }setTintColor(value?: (UIColor) | null): Promise<void>Swift declarationvar tintColor: UIColor! { get set }get titleEdgeInsets(): Promise<{ top: number; left: number; bottom: number; right: number }>Swift declarationvar titleEdgeInsets: UIEdgeInsets { get set }setTitleEdgeInsets(value: { top: number; left: number; bottom: number; right: number }): Promise<void>Swift declarationvar titleEdgeInsets: UIEdgeInsets { get set }get titleLabel(): Promise<(UILabel) | null>Swift declarationvar titleLabel: UILabel? { get }static initConfigurationPrimaryAction(configuration: UIButton_Configuration, primaryAction?: (UIAction) | null): Promise<UIButton>Swift declaration@MainActor @preconcurrency convenience init(configuration: UIButton.Configuration, primaryAction: UIAction? = nil)get configuration(): Promise<(UIButton_Configuration) | null>Swift declaration@MainActor @preconcurrency var configuration: UIButton.Configuration? { get set }setConfiguration(value?: (UIButton_Configuration) | null): Promise<void>Swift declaration@MainActor @preconcurrency var configuration: UIButton.Configuration? { get set }get pointerStyleProvider(): Promise<(((arg0: UIButton, arg1: UIPointerEffect, arg2: UIPointerShape) => Promise<(UIPointerStyle) | null>)) | null>Swift declaration@MainActor @preconcurrency var pointerStyleProvider: UIButton.PointerStyleProvider? { get set }static initTypePrimaryAction(buttonType?: UIButton_ButtonType, primaryAction?: (UIAction) | null): Promise<UIButton>Swift declaration@MainActor @preconcurrency convenience init(type buttonType: UIButton.ButtonType = .system, primaryAction: UIAction?)3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UIButton.pointerStyleProvider
closure property answers its caller
UIButton.systemButton(with:target:action:)
Objective-C selectors cannot cross the bridge.
UIButton.init()
inherited init: cannot prove legal (class declares 5 custom initializers)