AnimatedVisibilityState

data class AnimatedVisibilityState(val visible: Boolean, val alpha: Float)

Holds the animated visibility state for a component, including the current visibility boolean and an animated alpha value.

See also

Constructors

Link copied to clipboard
constructor(visible: Boolean, alpha: Float)

Properties

Link copied to clipboard

The animated alpha value (0f when hidden, 1f when visible), suitable for applying to the component's modifier or content.

Link copied to clipboard

Whether the component should be visible (before animation).