https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

coroutinedispatcher

12/01/2023, 8:49 AM
Hello. I am looking for handling back button + gestures in Android and IOS through KMM (using compose multiplatform). Is there a resource I can read?
s

Suresh Maidaragi

12/15/2023, 6:31 AM
@coroutinedispatcher did you got any resources
c

coroutinedispatcher

12/17/2023, 7:07 PM
Hey. No I did it myself natively using an event bus in Kotlin. It's hackish. If you want to use a third party lib/ You can take a look at Voyager. It was pretty easy to integrate. You have to wrap your composable screens into kotlin classes though, but you get the gestures and the back button for free.

https://www.youtube.com/watch?v=Aww-h7ygo2k