Thread
#compose
    manueldidonna

    manueldidonna

    2 years ago
    There is a way to detect a swipe gesture?
    l

    Leland Richardson [G]

    2 years ago
    i believe so but @Shep Shapard will know more
    Gabriel Feo

    Gabriel Feo

    2 years ago
    I think there's a swipeGestureFilter modifier
    manueldidonna

    manueldidonna

    2 years ago
    I've only found a DragGestureFilter modifier that I could use to detect a fling
    matvei

    matvei

    2 years ago
    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