Skip to content

Commit

Permalink
Merge pull request #515 from arkivanov/back-gesture-docs
Browse files Browse the repository at this point in the history
Updated predictive back gesture docs
  • Loading branch information
arkivanov authored Oct 31, 2023
2 parents 5235d93 + 4681fa4 commit f03d0b2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/extensions/compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,13 @@ actual fun <C : Any, T : Any> backAnimation(
predictiveBackAnimation(
backHandler = backHandler,
animation = stackAnimation(iosLikeSlide()),
exitModifier = { progress, _ -> Modifier.slideExitModifier(progress = progress) },
enterModifier = { progress, _ -> Modifier.slideEnterModifier(progress = progress) },
selector = { initialBackEvent, _, _ ->
predictiveBackAnimatable(
initialBackEvent = initialBackEvent,
exitModifier = { progress, _ -> Modifier.slideExitModifier(progress = progress) },
enterModifier = { progress, _ -> Modifier.slideEnterModifier(progress = progress) },
)
},
onBack = onBack,
)

Expand Down

0 comments on commit f03d0b2

Please sign in to comment.