fix(m9): keep Stage4View under Swift 5.7 ViewBuilder 10-child limit (#111) #112

Merged
gronod merged 1 commits from feat/111-stage4-viewbuilder-limit into milestone/m9-monterey 2026-09-12 08:55:59 +01:00
+4
View File
@@ -138,6 +138,9 @@ struct Stage4View: View {
.textFieldStyle(.roundedBorder) .textFieldStyle(.roundedBorder)
.accessibilityIdentifier("colprofCopyright") .accessibilityIdentifier("colprofCopyright")
// Nested VStack keeps the parent at the Swift 5.7 ViewBuilder
// 10-child limit (Xcode 14.2 / macOS 12 CI runner, #111).
VStack(alignment: .leading, spacing: 12) {
Toggle("Apply calibration curve", isOn: $model.applyCalibration) Toggle("Apply calibration curve", isOn: $model.applyCalibration)
.accessibilityIdentifier("colprofApplyCalibration") .accessibilityIdentifier("colprofApplyCalibration")
@@ -151,6 +154,7 @@ struct Stage4View: View {
} }
} }
} }
}
.padding(16) .padding(16)
.background(Theme.panel) .background(Theme.panel)
} }