mattinger
04/22/2022, 2:49 PM@ExperimentalAnimationApi
@Composable
fun rememberAnimatedNavController(
vararg navigators: Navigator<out NavDestination>
): NavHostController {
val animatedNavigator = remember { AnimatedComposeNavigator() }
return rememberNavController(animatedNavigator, *navigators)
}
I assume i would pass the resolve of a rememberBottomSheetNavigator() call?Chrimaeon
04/22/2022, 3:31 PMmattinger
04/22/2022, 8:19 PMIan Lake
04/23/2022, 1:44 AMAnimatedContent
) are still experimentalrememberAnimatedNavController
, just like the docs say you should do with rememberNavController
: https://google.github.io/accompanist/navigation-material/+=
method was suggested only prior to that API existing, but isn't recommended anymore, since it is doing work on every composition vs only the once