-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[iOS][Shell]Tab becomes blank after specific navigation pattern - fix #29825
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
Conversation
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.
Pull Request Overview
This PR fixes an issue where navigating back in the iOS Shell sometimes results in a blank tab by ensuring that the pop navigation request flag is properly set.
- Renames the flag from a private "_popRequested" to an internal "popRequested" to allow external access from related renderers.
- Modifies various navigation methods to use the new flag.
- Introduces back navigation detection in ShellItemRenderer to set the flag appropriately.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs | Replaces _popRequested with an internal popRequested field and updates its usage in navigation-related methods. |
| src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs | Adds detection for back navigation by setting the popRequested flag from the associated ShellSectionRenderer. |
Comments suppressed due to low confidence (2)
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs:73
- [nitpick] Changing the field from a private _popRequested to an internal popRequested may impact encapsulation. Please ensure that this change is intentional and documented to clarify why external access is now required.
internal bool popRequested;
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs:124
- [nitpick] Directly setting the popRequested flag on ShellSectionRenderer in response to back navigation may tightly couple these components. Please verify that this design does not introduce unintended side effects or dependencies.
sectionRenderer.popRequested = true;
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/rebase |
25152b1 to
2bc936c
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs
Outdated
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
2a31f4c to
311df00
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs
Show resolved
Hide resolved
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs
Outdated
Show resolved
Hide resolved
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.
Just small questions and updates
…ctionRenderer.cs Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issues Fixed
Fixes #29798
Fixes #30280
Screen.Recording.2025-06-05.at.16.02.20.mov
Screen.Recording.2025-06-05.at.16.03.15.mov