Vitamin provides a VitaminSwitch class which handles specific colors for "on" and "off" states.
import Vitamin
// This switch will have a blue "on" state, and a gray "off" state
let vitaminSwitch = VitaminSwitch()Since it is a direct subclass of standard UISwitch, it can be used exactly like this one.