Hello, could you please suggest ways to implement ...
# compose-ios
a
Hello, could you please suggest ways to implement BackHandler for iOS? Is it possible to use the native back swipe gesture in iOS?
👍 1
a
You can follow this issue. Or embed Compose screens into native UIKit navigation when this critical bug is fixed
j
As an alternative you can write handle swipe on your side, like I do in my project.
a
FYI, Decompose supports the predictive back gesture on all platforms. There is one known bug which I will fix soon. https://arkivanov.github.io/Decompose/extensions/compose/#predictive-back-gesture
BackGestureIos.mp4
a
@Arkadii Ivanov Wow, predictive back is finaly there! Does
// Your usual animation here
means that i can make it slide like iOS native one?
a
Yes, it's customizable
a
Great job! Thanks for your work
Not tested yet, but is there an api to block swipe from right side? =)
a
Not currently. But that's a valid point, I will add this feature in the next release.
a
Thanks a lot! And what about appearing animation for previous child? Ios native one slides in from left
a
Currently you can only customize the disappearing screen, which is customizable. I could also make the disappearing screen customizable.
a
Got it. Thanks once again, amazing job
a
Thanks for the feedback! I have filed issues for those feature requests.
Just FYI, The new version of Decompose allows configuring transitions for entering and exiting screens individually. It's also possible to specify screen edges where back gestures should be handled.
311 Views