UISwitch$Methods extension

on

Properties

offImage UIImage?

Available on UISwitch, provided by the UISwitch$Methods extension

offImage
getter/setter pair
on$ bool

Available on UISwitch, provided by the UISwitch$Methods extension

isOn
getter/setter pair
onImage UIImage?

Available on UISwitch, provided by the UISwitch$Methods extension

onImage
getter/setter pair
onTintColor UIColor?

Available on UISwitch, provided by the UISwitch$Methods extension

onTintColor
getter/setter pair
preferredStyle UISwitchStyle

Available on UISwitch, provided by the UISwitch$Methods extension

Request a style for the switch. If the style changed, then the switch may resize.
getter/setter pair
style UISwitchStyle

Available on UISwitch, provided by the UISwitch$Methods extension

The switch's display style. This property always returns a concrete, resolved style (never UISwitchStyleAutomatic).
no setter
thumbTintColor UIColor?

Available on UISwitch, provided by the UISwitch$Methods extension

thumbTintColor
getter/setter pair
title ↔ NSString?

Available on UISwitch, provided by the UISwitch$Methods extension

The title displayed alongside the switch, positioned appropriately for the @c UIUserInterfaceIdiom. @note This property is only supported for Catalyst in the Mac idiom.
getter/setter pair

Methods

encodeWithCoder(NSCoder coder) → void

Available on UISwitch, provided by the UISwitch$Methods extension

encodeWithCoder:
initWithCoder(NSCoder coder) UISwitch?

Available on UISwitch, provided by the UISwitch$Methods extension

initWithCoder:
initWithFrame(CGRect frame) UISwitch

Available on UISwitch, provided by the UISwitch$Methods extension

initWithFrame:
initWithFramePrimaryAction(CGRect frame, {UIAction? primaryAction}) UISwitch

Available on UISwitch, provided by the UISwitch$Methods extension

Initializes the control and adds primaryAction for the UIControlEventPrimaryActionTriggered control event. Subclasses of UIControl may alter or add behaviors around the usage of primaryAction, see subclass documentation of this initializer for additional information.
setOn(bool on$1, {required bool animated}) → void

Available on UISwitch, provided by the UISwitch$Methods extension

setOn:animated: