Compose Unstyled 2.0 is out! Check the official announcement blog ->
Interface

SwipeToRevealDragScope

Scope used for suspending drag blocks.

Source set: Android
public interface SwipeToRevealDragScope

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

Functions

dragTo

public fun dragTo(newOffset: Float)

Assign a new value for an offset value for RevealState.

Parameters

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

Last updated: