Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 412 Bytes

File metadata and controls

13 lines (9 loc) · 412 Bytes

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.