-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[iOS] Back-navigation with swipe-back navigates back twice - fix #28485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Back-navigation with swipe-back navigates back twice - fix #28485
Conversation
|
Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
mattleibow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to write a UI test for this? I think that the swipe gestures should work?
|
|
||
| public override UIViewController PopViewController(bool animated) | ||
| { | ||
| _popRequested = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you include an UITest based on https://github.com/Vetle444/MauiTestApp/tree/swipeBackBug?
Can use App.SwipeLeftToRight(); in the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, it doesn't work for this iOS-specific-swipe-back gesture
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't it do anything? I can take a look and add it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be cool if you could figure it out
|
|
Author of the issue confirms this seems to fix it: #28446 (comment) |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/backport to release/9.0.1xx-sr5 |
|
Started backporting to release/9.0.1xx-sr5: https://github.com/dotnet/maui/actions/runs/14043250116 |
|
@sheiksyedm I believe this should help :) #28644 |

Description
I've made changes to iOS special back navigation in this PR: #24003, but didn't account for the siwpe gesture that behaves differently that the callout-menu-click navigation
Issues Fixed
Fixes #28446
Fixes #28572
Screen.Recording.2025-03-18.at.20.01.48.mov
Screen.Recording.2025-03-18.at.20.00.04.mov