Skip to content

Commit 79a6f56

Browse files
committed
Conditionally embed noticeStack in scroll view
1 parent 74cc5e9 commit 79a6f56

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsView.swift

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Yosemite
33

44
struct WooShippingSplitShipmentsView: View {
55
@Environment(\.dismiss) private var dismiss
6+
@Environment(\.sizeCategory) private var sizeCategory
67

78
@ObservedObject var viewModel: ViewModel
89

@@ -17,7 +18,7 @@ struct WooShippingSplitShipmentsView: View {
1718

1819
var body: some View {
1920
NavigationView {
20-
VStack {
21+
VStack(spacing: 0) {
2122
if viewModel.shipments.count > 1 {
2223
VStack(spacing: 0) {
2324
topTabView
@@ -44,14 +45,20 @@ struct WooShippingSplitShipmentsView: View {
4445
CollapsibleShipmentItemCard(viewModel: item)
4546
}
4647
}
48+
49+
if sizeCategory.isAccessibilityCategory {
50+
Spacer()
51+
noticeStack
52+
}
4753
}
4854
.padding(Layout.contentPadding)
4955
}
5056

51-
Spacer()
52-
53-
noticeStack
54-
.padding(Layout.contentPadding)
57+
if !sizeCategory.isAccessibilityCategory {
58+
Spacer()
59+
noticeStack
60+
.padding(Layout.contentPadding)
61+
}
5562
}
5663
.disabled(viewModel.isSavingShipmentInfo)
5764
.navigationBarTitleDisplayMode(.inline)

0 commit comments

Comments
 (0)