Skip to content

Instantly share code, notes, and snippets.

@takahirom
Created December 4, 2021 08:37
Show Gist options
  • Save takahirom/9ca0f0f5bc53e480b406146bc8c3fea5 to your computer and use it in GitHub Desktop.
Save takahirom/9ca0f0f5bc53e480b406146bc8c3fea5 to your computer and use it in GitHub Desktop.
@Composable
fun MySwitch() {
// I have a Kotlin variable with a State of check.
var checked = false
Switch(
​checked = checked,
​onCheckedChange = {
​checked = it
​}
​)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment