Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@arcadefire
Created September 12, 2021 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arcadefire/08b2db625098495495afa75e9062f360 to your computer and use it in GitHub Desktop.
Save arcadefire/08b2db625098495495afa75e9062f360 to your computer and use it in GitHub Desktop.
Swipeable modifier
val swipeableState = rememberSwipeableState(initialValue = States.EXPANDED)
Box(
Modifier
.swipeable(
state = swipeableState,
orientation = Orientation.Vertical,
anchors = mapOf(
0f to States.EXPANDED,
maxHeight to States.COLLAPSED,
)
)
)
@mbunderline76
Copy link

where the fuck is maxHeight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment