|
1 | 1 | import SwiftUI |
2 | 2 |
|
3 | | -// TODO: Remove this view when all flows are complete |
4 | | -struct PointOfSaleBarcodeScannerWelcomeView: View { |
5 | | - let title: String |
6 | | - |
7 | | - var body: some View { |
8 | | - VStack(spacing: POSSpacing.medium) { |
9 | | - Text(title) |
10 | | - .font(.posBodyLargeBold) |
11 | | - .foregroundColor(.posOnSurface) |
12 | | - |
13 | | - Text("TODO: Implement \(title) setup flow") |
14 | | - .font(.posBodyMediumRegular()) |
15 | | - .foregroundColor(.posOnSurfaceVariantHighest) |
16 | | - .multilineTextAlignment(.center) |
17 | | - } |
18 | | - } |
19 | | -} |
20 | | - |
21 | 3 | struct PointOfSaleBarcodeScannerBarcodeView: View { |
22 | 4 | let title: String |
23 | 5 | let instruction: String |
@@ -212,25 +194,3 @@ struct PointOfSaleBarcodeScannerErrorView: View { |
212 | 194 | "to factory settings, then retry the set up flow." |
213 | 195 | } |
214 | 196 | } |
215 | | - |
216 | | -// MARK: - Button Customizations |
217 | | -@available(iOS 17.0, *) |
218 | | -struct PointOfSaleBarcodeScannerWelcomeButtonCustomization: PointOfSaleBarcodeScannerButtonCustomization { |
219 | | - func customizeButtons(for flow: PointOfSaleBarcodeScannerSetupFlow) -> PointOfSaleFlowButtonConfiguration { |
220 | | - return PointOfSaleFlowButtonConfiguration( |
221 | | - primaryButton: PointOfSaleFlowButtonConfiguration.ButtonConfig( |
222 | | - title: Localization.doneButtonTitle, |
223 | | - action: { flow.nextStep() } |
224 | | - ), |
225 | | - secondaryButton: nil |
226 | | - ) |
227 | | - } |
228 | | - |
229 | | - private enum Localization { |
230 | | - static let doneButtonTitle = NSLocalizedString( |
231 | | - "pos.barcodeScannerSetup.done.button.title", |
232 | | - value: "Done", |
233 | | - comment: "Title for the done button in barcode scanner setup navigation" |
234 | | - ) |
235 | | - } |
236 | | -} |
0 commit comments