Skip to content

Commit 0cb823b

Browse files
committed
Fix issues with safe area
1 parent 997d862 commit 0cb823b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/ViewRelated/Coupons/CouponDetails/CouponDetails.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ struct CouponDetails: View {
136136
Text(Localization.performance)
137137
.bold()
138138
.padding(Constants.margin)
139-
.padding(.horizontal, insets: geometry.safeAreaInsets)
140139
VStack(alignment: .leading, spacing: Constants.verticalSpacing) {
141140
HStack(alignment: .firstTextBaseline) {
142141
Text(Localization.discountedOrders)
@@ -172,6 +171,7 @@ struct CouponDetails: View {
172171
}
173172
}
174173
}
174+
.padding(.horizontal, insets: geometry.safeAreaInsets)
175175
.padding(.bottom, Constants.margin)
176176
.background(Color(.listForeground))
177177

@@ -182,7 +182,7 @@ struct CouponDetails: View {
182182
}.hidden()
183183
}
184184
.background(Color(.listBackground))
185-
.ignoresSafeArea(.container, edges: [.horizontal, .bottom])
185+
.ignoresSafeArea(.container, edges: [.horizontal])
186186
.sheet(isPresented: $showingEnableAnalytics) {
187187
EnableAnalyticsView(viewModel: .init(siteID: viewModel.siteID),
188188
presentingController: noticePresenter.presentingViewController,

0 commit comments

Comments
 (0)