Does Jetpack Compose have a concept of providing `...
# compose
n
Does Jetpack Compose have a concept of providing
systemGestureExclusionRects
for gesture navigation? Alternatively, is it possible to obtain the screen bounds of a particular composable so I can use it to set these?
a
you can use
Modifier.onGloballyPositioned
and
LayoutCoordinates.boundsInRoot()
n
Thanks, I'll try those out. Much appreciated.
Works great, using
boundsInWindow()
worked for me here, I was able to exclude my camera-roll view, so that I can swipe it without the gestures kicking in near the edges of the screen.