[iOS 26] Fix broken country select navigation #16171
Merged
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.

WOOMOB-1371, WOOMOB-1387
Description
NonEditableOrderBannerwas stuck at landscape width and made the whole order editing UI remain of a landscape width.The issue was likely caused by a difference in the view hierarchy rendering on iOS. It could not be reproduced on iOS 18. In OrderForm, the parent GeometryReader container and NonEditableOrderBanner(width: geometry.size.width) caused the view to re-render whenever the keyboard appeared.
As a result, when presenting the country selector and focusing the search bar, the keyboard triggered a re-render. This broke the active NavigationLink, causing the country selector to dismiss unexpectedly.
The main idea of the fix is:
GeometryReaderto the parent view inbodyand applying the with value to a preference:bannerWidthstate var:NonEditableOrderBanner:Note: The majority of changes in the diff are caused by removing the parent
GeometryReader {}.Steps to reproduce
Testing information
Tested on iPhone 17 simulator (iOS 26)
Broken navigation before fix
NavigationBroken.mov
Navigation after fix
NavigationFixed.mov
Broken banner before fix
NonEditableOrderBanner-Broken.mov
Banner after fix
NonEditableOrderBanner_Fixed.mov
RELEASE-NOTES.txtif necessary.