RadekVyM / SimpleToolkit

SimpleToolkit is a .NET MAUI library of helpers and simple, fully customizable controls, such as SimpleShell - custom Shell implementation that allows you to create unique navigation experiences.
MIT License
435 stars 44 forks source link

Swipe to go back gesture not working in iOS #18

Closed drmaven closed 1 year ago

drmaven commented 1 year ago

Hello,

While the swipe to go back gesture works fine in Android, in iOS it's not working at all. I am pushing the page like this from within a tab: Shell.Current.GoToAsync("route");

Is there any workaround?

PS. Congrats on this great plugin, it really brings much needed features to Shell.

RadekVyM commented 1 year ago

Hi @drmaven, thanks for finding the missing feature. I tried to implement it in the newest version of the package.

drmaven commented 1 year ago

Thanks for the quick response and solution, it works great!

I am wondering, is there a way to keep the default Shell transitions and swipe back gesture? On IOS, swiping back actually follows the finger position and allows for cancellation of the gesture. I am just asking if there is a way to use this, but not if it requires any more time developing it since you have already done a great job with this library.

RadekVyM commented 1 year ago

Hi @drmaven,

SimpleShell does not support native transitions at all because it is not implemented using native navigation controls. You can create your own transitions, but it is a bit limited. For example, it is not possible to create the aforementioned transition when swiping back on iOS.

I recommend using normal Shell for a native look and feel.

drmaven commented 1 year ago

That's fine, SimpleShell provides many more benefits that I don't see myself going back to regular Shell. Thanks for the explanation!