commonMain.moe.tlaster.precompose.navigation.SwipeProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of precompose-jvm Show documentation
Show all versions of precompose-jvm Show documentation
A third-party Jetbrains Compose library with ViewModel, LiveData and Navigation support.
package moe.tlaster.precompose.navigation
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.dp
class SwipeProperties(
val positionalThreshold: (totalDistance: Float) -> Float = { distance: Float -> distance * 0.5f },
val velocityThreshold: Density.() -> Float = { 56.dp.toPx() },
)