Skip to content

Commit

Permalink
feat: PostDetail 애니메이션 변경 (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhkrwngud445 authored May 2, 2024
1 parent eaa63b2 commit d0c0ac0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.withpeace.withpeace.feature.postdetail.navigation

import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.core.tween
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
Expand Down Expand Up @@ -30,6 +32,12 @@ fun NavGraphBuilder.postDetailGraph(
arguments = listOf(
navArgument(POST_DETAIL_ID_ARGUMENT) { type = NavType.LongType },
),
enterTransition = {
slideIntoContainer(
AnimatedContentTransitionScope.SlideDirection.Left,
animationSpec = tween(500),
)
},
) {
PostDetailRoute(
onShowSnackBar = onShowSnackBar,
Expand Down

0 comments on commit d0c0ac0

Please sign in to comment.