From c71f46b31c2fb5a9d734f190b6f9efc5e4b716e3 Mon Sep 17 00:00:00 2001 From: Griffin Sorrentino Date: Tue, 18 Jun 2024 16:52:24 -0400 Subject: [PATCH] Added targetContentZIndex and sizeTransform value passthrough (#445) * Added targetContentZIndex and sizeTransform value passthrough * Lint fix --- .../cafe/adriel/voyager/transitions/ScreenTransition.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/voyager-transitions/src/commonMain/kotlin/cafe/adriel/voyager/transitions/ScreenTransition.kt b/voyager-transitions/src/commonMain/kotlin/cafe/adriel/voyager/transitions/ScreenTransition.kt index 62af9d53..c0db8e52 100644 --- a/voyager-transitions/src/commonMain/kotlin/cafe/adriel/voyager/transitions/ScreenTransition.kt +++ b/voyager-transitions/src/commonMain/kotlin/cafe/adriel/voyager/transitions/ScreenTransition.kt @@ -163,7 +163,12 @@ public fun ScreenTransition( val screenExitTransition = sourceScreenTransition?.exit(navigator.lastEvent) ?: contentTransform.initialContentExit - screenEnterTransition togetherWith screenExitTransition + ContentTransform( + screenEnterTransition, + screenExitTransition, + contentTransform.targetContentZIndex, + contentTransform.sizeTransform + ) }, modifier = modifier ) { screen ->