https://kotlinlang.org logo
Title
a

Adam Brown

05/12/2023, 9:23 PM
I'm curious how/if the way that decompose handles the back button will enable or not enable us to support predictive back gestures in Android
a

Arkadii Ivanov

05/12/2023, 9:30 PM
Decompose already supports the predictive back gesture when exiting the activity. Between screens is a different story and requires some work. It's already in progress. https://github.com/arkivanov/Decompose/issues/379 Btw I did a POC recently - https://twitter.com/arkann1985/status/1656073241817931778
a

Adam Brown

05/12/2023, 9:30 PM
awesome!
a

Arkadii Ivanov

05/12/2023, 9:30 PM
But turned out it's not so easy, will require some work in Essenty.
Good news - it should be to "back port" the behaviour to all other Compose platforms.
a

Adam Brown

05/12/2023, 9:31 PM
very cool