Package io.writeopia.sdk.uicomponents
Class SwipeBoxKt
-
- All Implemented Interfaces:
public final class SwipeBoxKt
-
-
Method Summary
-
-
Method Detail
-
SwipeBox
@Composable() final static Unit SwipeBox(Modifier modifier, Boolean isOnEditState, Color defaultColor, Color activeColor, Shape cornersShape, Function1<Boolean, Unit> swipeListener, Function1<BoxScope, Unit> content)
Composable to create a swipe effect. The more far away for the original position the user is, the harder it will be to keep moving, which mimics an elastic effect. The recomended usage of this compose is to create a swipe to edit functionality.
- Parameters:
modifier- ModifierisOnEditState- BooleandefaultColor- Color The color of the container in the idle stateactiveColor- Color The color of the container in the active statecornersShape- Shape The shape of the containerswipeListener- Listener of the swipe actioncontent- The inner Composable
-
-
-
-