There is a way to detect a swipe gesture?
# compose
m
There is a way to detect a swipe gesture?
l
i believe so but @Shep Shapard will know more
❤️ 1
g
I think there's a swipeGestureFilter modifier
m
I've only found a DragGestureFilter modifier that I could use to detect a fling
☝🏻 1
m
Hey. I have some ideas how we can provide high-level APIs like that. Can you elaborate on the use case you have? What behaviour do you want for swipe? Just nitiufication when swipe happens? Or track the in-progress value to animate / drag smth and then finish with fling animation (swipe-to-dismiss usecase)? Please, provide more details and maybe we can file a FR. Also, take a look at
Modifier.draggable
, it allows you to draw in the direction and then easy fling binding for after-drag animation (See Samples in docs: https://developer.android.com/reference/kotlin/androidx/ui/foundation/gestures/package-summary#draggable) `Also, take a loot at