[Orders] Add ShippingLineRowView for order shipping lines #12822
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.
Part of: #12582
Why
This adds a SwiftUI view for shipping lines in the order creation/editing form and order details.
How
Since we know we'll want to show a similar view in both places, I created this as a SwiftUI view that we can display in order details using a
UIHostingConfiguration
in aUITableViewCell
.The layout is similar to the
CustomAmountRowView
and it might be worth eventually creating a more reusable row view that supports a title, optional subtitle, value, and edit button.Testing instructions
This view is not yet used in the UI. Different device configurations (color scheme, orientation, dynamic type) can be tested in the SwiftUI preview.
Screenshots
RELEASE-NOTES.txt
if necessary.