diff --git a/Writerside/topics/Shared-Element-Transitions.md b/Writerside/topics/Shared-Element-Transitions.md index 98318d2..b8f92af 100644 --- a/Writerside/topics/Shared-Element-Transitions.md +++ b/Writerside/topics/Shared-Element-Transitions.md @@ -222,7 +222,8 @@ fun Screens() { val navController = rememberNavController() SharedTransitionLayout { NavHost(navController, startDestination = "first") { - composable( + //This could easily be modified to accept the string route + animatedScopeComposable( "first", enterTransition = { slideInHorizontally(initialOffsetX = { -it }) }, exitTransition = { slideOutHorizontally(targetOffsetX = { it }) }