Join Slack
Powered by
what Api should I use to animate when entering com...
# compose
m
mgrazianodecastro
03/10/2023, 9:13 PM
what Api should I use to animate when entering composition and leaving it?
i
Ian Lake
03/10/2023, 9:16 PM
If you're using AnimatedVisibility or AnimatedContent (or AnimatedNavHost, which uses that under the hood), you'd use
https://developer.android.com/reference/kotlin/androidx/compose/animation/AnimatedVisibilityScope#(androidx.compose.ui.Modifier).animateEnterExit(androidx.compose.animation.EnterTransition,androidx.compose.animation.ExitTransition,kotlin.String)
5
Views
Open in Slack
Previous
Next