remember Visibility Animation
Computes the animated visibility state for a given VisibilityState, providing both the current visibility boolean and an animated alpha value.
This composable function observes the visibilityState and returns an AnimatedVisibilityState that includes the visibility boolean and an animated alpha value. The alpha animates between 0f (hidden) and 1f (visible) using the animation tokens from StylishTheme.animation.
Use this when you need both the visibility state and a smoothly animated alpha value for custom transitions or when AnimatedVisibility is not suitable.
Return
An AnimatedVisibilityState with the current visibility and animated alpha.
Parameters
visibility State
The VisibilityState to observe and animate.