Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Switch

Reference

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.