Skip to main content
Switches
Updated over 3 months ago

Play’s switch element lets you toggle between on and off. It brings Apple’s native switch into your designs.

Active

The Active property lets you set the default state of the switch to on or off.

Tint

Using the Color property, you can select the color the switch is when active.

Saving a Switch Value

You can save the value of your picker as a boolean variable and use it throughout your page or project.

Did this answer your question?