Created
February 11, 2025 18:05
-
-
Save vitoksmile/637020c57dfcf616d7d7b1782efdd683 to your computer and use it in GitHub Desktop.
ComposeHints
This file contains hidden or 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
| @Stable | |
| class Hint internal constructor() { | |
| internal var content: @Composable () -> Unit by mutableStateOf({}) | |
| } | |
| @Composable | |
| fun rememberHint(content: @Composable () -> Unit): Hint { | |
| return remember { | |
| Hint().also { it.content = content } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment