-
Notifications
You must be signed in to change notification settings - Fork 120
Improve dynamic size of shipment details bottom sheet #15648
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
Improve dynamic size of shipment details bottom sheet #15648
Conversation
470a467 to
9adb76c
Compare
|
|
9adb76c to
12813d1
Compare
itsmeichigo
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.
Thanks for the fix! Tested and confirmed using simulator iPhone 16 Pro with accessibility font sizes.
| .footnoteStyle() | ||
| } | ||
| AdaptiveStack { | ||
| HStack { |
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.
| .frame(idealHeight: Layout.rowHeight) | ||
| ForEach(viewModel.shippingLines) { shippingLine in | ||
| AdaptiveStack { | ||
| HStack { |
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.
Same suggestion as above about the child item alignment.
|
|
||
| static let toggleTextLineLimit = 3 | ||
| static let toggleTextMaxDynamicTypeSizePortrait = DynamicTypeSize.accessibility1 | ||
| static let toggleTextMaxDynamicTypeSizeAlbum = DynamicTypeSize.xxxLarge |
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.
Super nit: can we use landscape wording instead of album? I'm unfamiliar with this wording, which may be hard to understand.
| .onChange(of: geometry.size) { newSize in | ||
| /// Support dynamic type size change | ||
| if index < tabWidths.count { | ||
| tabWidths[index] = newSize.width | ||
| if index == selectedTab { | ||
| underlineTabWith(tabGeometry: geometry) | ||
| } | ||
| } | ||
| } |
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.
Nice fix!


Closes: WOOMOB-476
Description
The change in this PR fixes overlapping and shifting layout after applying a larger dynamic-type size.
.frame(idealHeight: Layout.rowHeight)fromWooShippingCreateLabelsViewAdaptiveStackwithHStack. Adaptive stack flips into a vertical stack when there is not enough width (widths becomes compact) making inline components to re-arrange vertically even if there is still some space available.Steps to reproduce
Testing information
Before - Album
Horizontal_Broken.mp4
After - Album
Horizontal_Fixed.mp4
Before - Portrait
Simulator.Screen.Recording.-.iPhone.16.-.2025-05-16.at.14.00.21.mp4
After - Portrait
Simulator.Screen.Recording.-.iPhone.16.-.2025-05-16.at.13.57.25.mp4
RELEASE-NOTES.txtif necessary.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: