Skip to content

Commit b180138

Browse files
committed
Avoid setting the frame on every step view
1 parent 8553d97 commit b180138

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

WooCommerce/Classes/POS/Presentation/Barcode Scanner Setup/PointOfSaleBarcodeScannerSetup.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ struct PointOfSaleBarcodeScannerSetup: View {
1818

1919
VStack {
2020
currentContent
21+
.frame(maxWidth: .infinity, maxHeight: .infinity)
2122
Spacer()
2223
}
2324
.scrollVerticallyIfNeeded()

WooCommerce/Classes/POS/Presentation/Barcode Scanner Setup/PointOfSaleBarcodeScannerSetupStepViews.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ struct PointOfSaleBarcodeScannerWelcomeView: View {
1515
.foregroundColor(.posOnSurfaceVariantHighest)
1616
.multilineTextAlignment(.center)
1717
}
18-
.frame(maxWidth: .infinity, maxHeight: .infinity)
1918
}
2019
}
2120

@@ -40,7 +39,6 @@ struct PointOfSaleBarcodeScannerBarcodeView: View {
4039

4140
Image(barcode.imageName)
4241
}
43-
.frame(maxWidth: .infinity, maxHeight: .infinity)
4442
}
4543
}
4644

@@ -76,7 +74,6 @@ struct PointOfSaleBarcodeScannerPairingView: View {
7674
}
7775
.buttonStyle(POSOutlinedButtonStyle(size: .extraSmall))
7876
}
79-
.frame(maxWidth: .infinity, maxHeight: .infinity)
8077
}
8178

8279
private var instruction: String {

0 commit comments

Comments
 (0)