Created
December 4, 2021 08:37
-
-
Save takahirom/9ca0f0f5bc53e480b406146bc8c3fea5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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