[iOS] Fix Navigation Page BackButtonTitle Not Updating#31583
Merged
PureWeen merged 4 commits intodotnet:inflight/candidatefrom Sep 18, 2025
Merged
[iOS] Fix Navigation Page BackButtonTitle Not Updating#31583PureWeen merged 4 commits intodotnet:inflight/candidatefrom
PureWeen merged 4 commits intodotnet:inflight/candidatefrom
Conversation
Contributor
|
Hey there @@devanathan-vaithiyanathan! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Contributor
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes an issue on iOS where the NavigationPage.BackButtonTitle property did not update at runtime without triggering other navigation-related changes. The fix ensures that changes to the BackButtonTitle property are immediately reflected in the UI.
- Adds runtime handling for BackButtonTitle property changes in iOS NavigationRenderer
- Includes comprehensive UI test coverage to verify the fix works correctly
- Follows the established pattern for handling navigation property changes
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs |
Adds BackButtonTitle property change handling to call UpdateBackButtonTitle method |
src/Controls/tests/TestCases.HostApp/Issues/Issue31539.cs |
Creates UI test page with buttons to test BackButtonTitle runtime updates |
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue31539.cs |
Implements NUnit test to verify BackButtonTitle updates correctly |
Contributor
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jsuarezruiz
approved these changes
Sep 17, 2025
github-actions bot
pushed a commit
that referenced
this pull request
Sep 18, 2025
* Update NavigationRenderer.cs * test case added * Update Issue31539.cs * snapshot added
github-actions bot
pushed a commit
that referenced
this pull request
Sep 23, 2025
* Update NavigationRenderer.cs * test case added * Update Issue31539.cs * snapshot added
github-actions bot
pushed a commit
that referenced
this pull request
Sep 23, 2025
* Update NavigationRenderer.cs * test case added * Update Issue31539.cs * snapshot added
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!
Issue Details
On iOS, NavigationPage.BackButtonTitle did not update at runtime until Apply TitleView or Set TitleIconImageSource was changed.
Description of Change
Added handling for BackButtonTitleProperty in HandleChildPropertyChanged, which calls UpdateBackButtonTitle(Child) to ensure the back button title updates at runtime.
Issues Fixed
Fixes #31539
Tested the behavior in the following platforms.
Before.mov
After.mov