Instance Method

setColor(_:)

Changes the tint color of the switch when it is on.

Declaration

func setColor(_ color: UIColor?)

Parameters

color

The tint color to use for the switch. Specify nil to use the default switch color.

See Also

Configuring the Switch

func setOn(Bool)

Sets the state of the switch to the specified value.