Skip to content

Form and Section - #31

Merged
colemancda merged 5 commits into
masterfrom
feature/form
Jul 23, 2026
Merged

Form and Section#31
colemancda merged 5 commits into
masterfrom
feature/form

Conversation

@colemancda

Copy link
Copy Markdown
Member

Fifth tier, second half: grouped forms. DatePicker remains deferred to its own tier.

What's new

  • Form — a scrolling container of sections; the interpreter renders it as a vertically-scrolling column.
  • SectionSection("Header"), Section(header:footer:), or unlabeled; rendered as an inset rounded group (surface variant) with an uppercase header, dividers between rows, and an optional footer.

Rows are ordinary views, so toggles, sliders, text fields, and stacks work inside a section unchanged.

Verification

  • swift test — new test (Form nests a Section with its header and rows), 48 total passing
  • Emulator (new Form screen): a settings-style form with CONNECTIVITY (two toggles), DISPLAY (slider + level row + footer), and ACCOUNT (text field + status row) sections — grouped surfaces, dividers, headers, and live controls all render correctly

Deferred

DatePicker (needs a date type + a Compose date dialog) — next tier. Section content here is string headers/footers; view-based headers are not modeled.

@colemancda
colemancda merged commit 12160da into master Jul 23, 2026
6 checks passed
@colemancda
colemancda deleted the feature/form branch July 23, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant