New Compose Multiplatform components arrived on Composables UICheck it out →

Component in Compose Animation

SharedTransitionScope

Common

[SharedTransitionScope] creates a [SharedTransitionScope] for the child layouts in [content]. Any child (direct or indirect) of the [SharedTransitionLayout] can use the receiver scope [SharedTransitionScope] to create shared element or shared bounds transitions. [SharedTransitionScope] will not creates a new Layout.

Last updated:

Installation

dependencies {
   implementation("androidx.compose.animation:animation:1.7.0-beta04")
}

Overloads

@Composable
@ExperimentalSharedTransitionApi
fun SharedTransitionScope(
    content: @Composable SharedTransitionScope.(Modifier) -> Unit
)

Parameters

namedescription
contentThe children composable to be laid out.