public class AnimatedSpatialVisibilityScope
internal constructor(override val transition: Transition<EnterExitState>) :
AnimatedVisibilityScope
This is the scope for the content of AnimatedSpatialVisibility. In this scope, direct and indirect children of AnimatedSpatialVisibility will be able to define their own enter/exit transitions using the built-in options via SubspaceModifier.animateEnterExit. They will also be able define custom enter/exit animations using the transition object. AnimatedSpatialVisibility will ensure both custom and built-in enter/exit animations finish before it considers itself idle, and subsequently removes its content in the case of exit.
Note: Custom enter/exit animations that are created independent of the AnimatedSpatialVisibilityScope.transition will have no guarantee to finish when exiting, as AnimatedSpatialVisibility would have no visibility of such animations.
Functions
animateEnterExit
@Composable
public fun SubspaceModifier.animateEnterExit(
enter: SpatialEnterTransition = SpatialTransitionDefaults.DefaultEnter,
exit: SpatialExitTransition = SpatialTransitionDefaults.DefaultExit,
): SubspaceModifier