Skip to main content

Overview

Switches toggle between on and off. Play’s switch element uses Apple’s native iOS toggle. You can customize the switch’s default state and tint color. Switch.jpg

Properties

In addition to the properties below, glass effect containers also have access to general object properties in the Expression Editor.

Value

Set if the switch is on or off by default.
Switch.value
Type: boolean
Values: true, false
Can get or set the value.

Tint Color

Select the switch’s accent color.
Switch.tint
Type: color
Can get or set the tint color or an individual color property.

Resources

Related Triggers & Actions Links
I