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
Owner

Fixes #111.

Run 31958 failed on the macos-12 runner (Xcode 14.2 / Swift 5.7):

Sources/ICCery/Stage4View.swift:144:13: error: extra argument in call

The VStack in formSection had 11 direct children. Swift 5.7's ViewBuilder only provides buildBlock overloads up to 10 arguments; the 11th (if model.applyCalibration) produces the misleading error. Newer toolchains use variadic buildBlock, which is why this compiled locally.

Fix: wrap the Toggle + conditional calibration-file row in a nested VStack(alignment: .leading, spacing: 12) — identical layout, parent drops to 10 children. Audited all Sources/ICCery containers; this was the only one over the limit.

Verified locally: xcodebuild build -scheme ICCery succeeds (Xcode 16.2 sanity check; Swift 5.7 verification comes via the re-tagged CI run).

Fixes #111. Run 31958 failed on the macos-12 runner (Xcode 14.2 / Swift 5.7): ``` Sources/ICCery/Stage4View.swift:144:13: error: extra argument in call ``` The `VStack` in `formSection` had 11 direct children. Swift 5.7's `ViewBuilder` only provides `buildBlock` overloads up to 10 arguments; the 11th (`if model.applyCalibration`) produces the misleading error. Newer toolchains use variadic `buildBlock`, which is why this compiled locally. Fix: wrap the `Toggle` + conditional calibration-file row in a nested `VStack(alignment: .leading, spacing: 12)` — identical layout, parent drops to 10 children. Audited all `Sources/ICCery` containers; this was the only one over the limit. Verified locally: `xcodebuild build -scheme ICCery` succeeds (Xcode 16.2 sanity check; Swift 5.7 verification comes via the re-tagged CI run).
gronod added the
Priority
High
2
Project/ICCery-v2Bug/UI
labels 2026-09-12 08:55:22 +01:00
gronod added 1 commit 2026-09-12 08:55:23 +01:00
The formSection VStack had 11 direct children; Xcode 14.2's ViewBuilder
only provides buildBlock overloads up to 10 arguments, so the CI build
on the macOS 12 runner failed at line 144 with "extra argument in call"
(run 31958). Nest the calibration toggle and conditional file row in an
inner VStack with identical alignment and spacing.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
gronod merged commit 1b3d3dd821 into milestone/m9-monterey 2026-09-12 08:55:59 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/iccery-v2-mac#112