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
+13 -9
View File
@@ -138,16 +138,20 @@ struct Stage4View: View {
.textFieldStyle(.roundedBorder) .textFieldStyle(.roundedBorder)
.accessibilityIdentifier("colprofCopyright") .accessibilityIdentifier("colprofCopyright")
Toggle("Apply calibration curve", isOn: $model.applyCalibration) // Nested VStack keeps the parent at the Swift 5.7 ViewBuilder
.accessibilityIdentifier("colprofApplyCalibration") // 10-child limit (Xcode 14.2 / macOS 12 CI runner, #111).
VStack(alignment: .leading, spacing: 12) {
Toggle("Apply calibration curve", isOn: $model.applyCalibration)
.accessibilityIdentifier("colprofApplyCalibration")
if model.applyCalibration { if model.applyCalibration {
HStack { HStack {
TextField("Calibration .cal file", text: $model.calibrationFile) TextField("Calibration .cal file", text: $model.calibrationFile)
.textFieldStyle(.roundedBorder) .textFieldStyle(.roundedBorder)
.accessibilityIdentifier("colprofCalibrationFile") .accessibilityIdentifier("colprofCalibrationFile")
Button("Browse…") { model.browseForCalibrationFile() } Button("Browse…") { model.browseForCalibrationFile() }
.accessibilityIdentifier("btnBrowseCalibrationFile") .accessibilityIdentifier("btnBrowseCalibrationFile")
}
} }
} }
} }