commonMain.com.arkivanov.decompose.extensions.compose.experimental.stack.SimpleAnimatedVisibilityScope.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of extensions-compose-experimental-jvm Show documentation
Show all versions of extensions-compose-experimental-jvm Show documentation
Kotlin Multiplatform lifecycle-aware business logic components
package com.arkivanov.decompose.extensions.compose.experimental.stack
import androidx.compose.animation.AnimatedVisibilityScope
import androidx.compose.animation.EnterExitState
import androidx.compose.animation.core.Transition
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
@Composable
internal fun WithAnimatedVisibilityScope(
transition: Transition,
block: @Composable AnimatedVisibilityScope.() -> Unit,
) {
val scope = remember(transition) { SimpleAnimatedVisibilityScope(transition) }
scope.block()
}
private class SimpleAnimatedVisibilityScope(
override val transition: Transition,
) : AnimatedVisibilityScope
© 2015 - 2024 Weber Informatics LLC | Privacy Policy