Hi. I have a question. How do I wait for the `Anim...
# compose
s
Hi. I have a question. How do I wait for the
AnimatedContent
transition to complete? Is there a callback for this? Well, I found that the
AnimatedVisibilityScope
has the
transition
attribute with the
isRunning
property. Is this the correct way to use it? I want to fire my action after the animation ends. Thanks.
d
AnimatedVisibilityScope#Transition
will give you the status of the enter/exit animation on one set of content i.e. the content in that
AnimatedVisibilityScope
. For the overall status of
AnimatedContent
, consider creating the
AnimatedContent
in a
Transition
, using the extension function
Transition#Animated Content(...)
. Then you can observe the Transition object for when the animation is finished.
👍 2