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
nilto use the default switch color.
Changes the tint color of the switch when it is on.
func setColor(_ color: UIColor?)The tint color to use for the switch. Specify nil to use the default switch color.