Why no gestures yet in Compose? should we manage g...
# compose
c
Why no gestures yet in Compose? should we manage gestures at the Activity level and just update the ViewModel?
l
there are gestures in compose… what is it you’re looking for?
c
just a simple down or fling
want to detect swipes
found nothing searching?
a
Look for the FooGestureDetector composable functions and feel free to click through how they're built up from the raw events if you want more than is currently available. If you have a specific use case we'd be happy to add it to the list of things to consider or to make sure it's possible to build with the public API
c
Thanks @Adam Powell, where would I look for this? you mean using code completion inside a view?
a
Yes, autocomplete inside another composable function body that would be a good place to start. The gesture detectors are the gesture events themselves and we have some additional layers for helping you wire them up to other content in your UI. Clickable is a good example of this, if you ctrl-click through Clickable you can see how the layers are put together and what the other primitives are