All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.arkivanov.decompose.extensions.compose.experimental.stack.SimpleAnimatedVisibilityScope.kt Maven / Gradle / Ivy

There is a newer version: 3.3.0-alpha02
Show newest version
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