init
TypeScriptstatic initCoder(coder: _Foundation_NSCoder): Promise<(UISwitch) | null>Swift declarationinit?(coder: NSCoder)class · iOS 2.0+ · SDK 27.1
@MainActor class UISwitchstatic initCoder(coder: _Foundation_NSCoder): Promise<(UISwitch) | null>Swift declarationinit?(coder: NSCoder)static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<UISwitch>Swift declarationinit(frame: CGRect)setOn(on: boolean, animated: boolean): Promise<void>Swift declarationfunc setOn(_ on: Bool, animated: Bool)get offImage(): Promise<(UIImage) | null>Swift declarationvar offImage: UIImage? { get set }setOffImage(value?: (UIImage) | null): Promise<void>Swift declarationvar offImage: UIImage? { get set }get isOn(): Promise<boolean>Swift declarationvar isOn: Bool { get set }setIsOn(value: boolean): Promise<void>Swift declarationvar isOn: Bool { get set }get onImage(): Promise<(UIImage) | null>Swift declarationvar onImage: UIImage? { get set }setOnImage(value?: (UIImage) | null): Promise<void>Swift declarationvar onImage: UIImage? { get set }get onTintColor(): Promise<(UIColor) | null>Swift declarationvar onTintColor: UIColor? { get set }setOnTintColor(value?: (UIColor) | null): Promise<void>Swift declarationvar onTintColor: UIColor? { get set }get preferredStyle(): Promise<UISwitch_Style>Swift declarationvar preferredStyle: UISwitch.Style { get set }setPreferredStyle(value: UISwitch_Style): Promise<void>Swift declarationvar preferredStyle: UISwitch.Style { get set }get style(): Promise<UISwitch_Style>Swift declarationvar style: UISwitch.Style { get }get thumbTintColor(): Promise<(UIColor) | null>Swift declarationvar thumbTintColor: UIColor? { get set }setThumbTintColor(value?: (UIColor) | null): Promise<void>Swift declarationvar thumbTintColor: UIColor? { get set }get title(): Promise<(string) | null>Swift declarationvar title: String? { get set }setTitle(value?: (string) | null): Promise<void>Swift declarationvar title: String? { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UISwitch.init()
inherited init: cannot prove legal (class declares 1 custom initializer)