https://kotlinlang.org logo
#compose
Title
# compose
c

Colton Idle

07/22/2022, 1:45 PM
Am I going crazy, or can I not use a mutableStateOf<Boolean> in AnimatedVisibility?
Copy code
AnimatedVisibility(visibleState = (viewModel.screenState.loadingInProgress))
rubber duck Whoops. It seems like I want Crossfade and not AnimatedVisibility!
rubber duck 4
d

dewildte

07/22/2022, 4:46 PM
I am not sure you are crazy. I witnessed some `AnimatedVisibility`s not animating when delegating to a
State<Boolean>
for it’s value.
Perhaps it happens if they are nested? It has not be completely reproducible for me.
3 Views