07/18/2022, 4:01 PM
Where to set Visibility to False in Jetpack Compose? Relaunching Animation everytime Composable comes into view? I would like to relaunch an animation everytime it comes into view, meaning if I scroll down a little with composable out of view, then scroll back up, the animation should relaunch. All the examples I've been seeing people have been setting the visibility to false with a button, however, I do NOT have a button. I would like it to be set whenever the composable is OUT of view. This is what I have so far: @Composable BarComponent{ var visible by remember { mutableStateOf(false) }...