-
-
Save arcadefire/08b2db625098495495afa75e9062f360 to your computer and use it in GitHub Desktop.
Swipeable modifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val swipeableState = rememberSwipeableState(initialValue = States.EXPANDED) | |
Box( | |
Modifier | |
.swipeable( | |
state = swipeableState, | |
orientation = Orientation.Vertical, | |
anchors = mapOf( | |
0f to States.EXPANDED, | |
maxHeight to States.COLLAPSED, | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where the fuck is maxHeight