@@ -89,17 +89,11 @@ struct PointOfSaleSettingsHardwareDetailView: View {
8989 }
9090 }
9191 }
92+ }
9293
93- private func handleScannerDestination( _ destination: ScannerDestination ) {
94- switch destination {
95- case . setup:
96- showBarcodeScanningSetupModal = true
97- case . documentation:
98- showBarcodeScanningDocumentationModal = true
99- }
100- }
101-
102- private var legacyCardReadersView : some View {
94+ // MARK: - Views
95+ private extension PointOfSaleSettingsHardwareDetailView {
96+ var legacyCardReadersView : some View {
10397 VStack ( spacing: POSSpacing . none) {
10498 POSPageHeaderView (
10599 title: Localization . cardReadersTitle,
@@ -168,7 +162,7 @@ struct PointOfSaleSettingsHardwareDetailView: View {
168162 }
169163 }
170164
171- private var cardReadersView : some View {
165+ var cardReadersView : some View {
172166 VStack ( spacing: POSSpacing . none) {
173167 POSPageHeaderView (
174168 title: Localization . cardReadersTitle,
@@ -224,7 +218,7 @@ struct PointOfSaleSettingsHardwareDetailView: View {
224218 }
225219 }
226220
227- private var scannersView : some View {
221+ var scannersView : some View {
228222 VStack ( spacing: POSSpacing . none) {
229223 POSPageHeaderView (
230224 title: Localization . scannersTitle,
@@ -340,8 +334,18 @@ private extension PointOfSaleSettingsHardwareDetailView {
340334 }
341335 }
342336 }
337+
338+ private func handleScannerDestination( _ destination: ScannerDestination ) {
339+ switch destination {
340+ case . setup:
341+ showBarcodeScanningSetupModal = true
342+ case . documentation:
343+ showBarcodeScanningDocumentationModal = true
344+ }
345+ }
343346}
344347
348+ // MARK: - Constants
345349private extension PointOfSaleSettingsHardwareDetailView {
346350 enum Localization {
347351 static let readerModelTitle = NSLocalizedString (
0 commit comments