SwipeToRevealDragScope

interface SwipeToRevealDragScope


Scope used for suspending drag blocks. Allows setting RevealState.offset to a new value.

See also
drag

to learn how to start the drag and get the access to this scope.

Summary

Public functions

Unit
dragTo(newOffset: Float)

Assign a new value for an offset value for RevealState.

Public functions

dragTo

Added in 1.7.0-alpha04
fun dragTo(newOffset: Float): Unit

Assign a new value for an offset value for RevealState.

Parameters
newOffset: Float

new value for RevealState.offset. Will be coerced to the boundaries defined by the available reveal targets