Instance Property

onTintColor

The color used to tint the appearance of the switch when it is turned on.

Declaration

var onTintColor: UIColor? { get set }

See Also

Customizing the Appearance of the Switch

var tintColor: UIColor!

The color used to tint the outline of the switch when it is turned off.

var thumbTintColor: UIColor?

The color used to tint the appearance of the thumb.

var onImage: UIImage?

In iOS 6 and earlier, the image displayed when the switch is in the on position.

var offImage: UIImage?

In iOS 6 and earlier, the image displayed when the switch is in the off position.