-
-
Save arcadefire/af42e638e4462041767a92211d7704d8 to your computer and use it in GitHub Desktop.
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
BoxWithConstraints { | |
val constraintsScope = this | |
val maxHeight = with(LocalDensity.current) { | |
constraintsScope.maxHeight.toPx() | |
} | |
Box( | |
Modifier | |
.swipeable( | |
/* ... */ | |
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