How do I use the materialkit switch on and off in a case statement or in a if-else statement for a function? It seems that the UIcontrol and Material Kit has two different syntax.
Asked
Active
Viewed 91 times
1 Answers
1
For Material, it is like this.
let materialSwitch = MaterialSwitch()
if .On == materialSwitch.switchState {
// Do something
} else {
// Do something else....
}

CosmicMind
- 1,499
- 1
- 10
- 6