Skip to content

Commit

Permalink
- Fixing small issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jakepurple13 committed May 16, 2024
1 parent 3b0a497 commit cacf9da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Writerside/topics/Shared-Element-Transitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) }
Expand Down

0 comments on commit cacf9da

Please sign in to comment.