snap to - VeleSSemecky/Purchase GitHub Wiki

//presentation/com.veles.purchase.presentation.compose/SwipeableState/snapTo

snapTo

[androidJvm]
suspend fun snapTo(targetValue: T)

Set the state without any animation and suspend until it's set

Parameters

androidJvm

targetValue The new target value to set currentValue to.
⚠️ **GitHub.com Fallback** ⚠️