Skip to content

feat: add GroupBox and GroupBoxStyle - #1265

Merged
Kyle-Ye merged 12 commits into
mainfrom
feature/group_box
Nov 24, 2026
Merged

Kyle-Ye merged 12 commits into
mainfrom
feature/group_box

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Nov 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Add labeled and unlabeled GroupBox views, automatic platform styles, and custom style support.
  • Add accessibility relationships for GroupBox labels and content.
  • Add agreement and custom style examples with pixel-exact UI snapshots.
  • Use the CoreUI widget constants exported by DarwinPrivateFrameworks.

Closes #1257.

Dependency

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T02:53:45.053027Z fb7faa9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added area: accessibility Accessibility APIs, settings, semantics, or behavior. area: example Example apps, previews, sample projects, screenshots, or demo assets. area: view View APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior. type: feature New API, behavior, platform support, or user-facing capability. labels Nov 24, 2026
@Kyle-Ye

Kyle-Ye commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

/uitest osui-iag update only-testing=OpenSwiftUIUITests/GroupBoxUITests

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fb7faa9624

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +231 to +233
if inputs.preferences.requiresAccessibilityNodes,
let scope = inputs[AccessibilityRelationshipScope.self],
let nodeList = outputs.accessibilityNodes {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Install a relationship scope before resolving modifiers

When accessibility nodes are requested, this condition always skips the relationship transform: AccessibilityRelationshipScope.defaultValue is nil, and a repository-wide search finds no construction or assignment of a scope into the view inputs. Consequently, both new public relationship modifiers are no-ops, including the labeled pairs applied to GroupBox labels and content, and AccessibilityNode.isLabel cannot recognize those labels through their relationships. Install a shared scope at an appropriate accessibility root before building the descendant views so matching elements can register in the same scope.

Useful? React with 👍 / 👎.

@tuist

tuist Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 ae4086fe3

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 51.3s ae4086fe3

Reported by Tuist, faster builds and reliable tests for Xcode, Gradle, Bazel, and more.

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 270 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.78%. Comparing base (fa97707) to head (cbd6887).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...nSwiftUI/Accessibility/AccessibilityRelation.swift 0.00% 127 Missing ⚠️
...nSwiftUI/View/GroupBox/MacIdiomGroupBoxStyle.swift 0.00% 57 Missing ⚠️
Sources/OpenSwiftUI/View/GroupBox/GroupBox.swift 0.00% 21 Missing ⚠️
...rces/OpenSwiftUI/View/GroupBox/GroupBoxStyle.swift 0.00% 19 Missing ⚠️
...enSwiftUI/View/GroupBox/DefaultGroupBoxStyle.swift 0.00% 15 Missing ⚠️
...wiftUI/View/GroupBox/PhoneIdiomGroupBoxStyle.swift 0.00% 10 Missing ⚠️
.../OpenSwiftUI/Accessibility/AccessibilityNode.swift 0.00% 8 Missing ⚠️
...tUI/Accessibility/AccessibilityConfiguration.swift 0.00% 7 Missing ⚠️
...UI/Accessibility/AccessibilityRepresentation.swift 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1265      +/-   ##
==========================================
- Coverage   31.85%   31.78%   -0.07%     
==========================================
  Files        1027     1033       +6     
  Lines       84428    84692     +264     
==========================================
+ Hits        26893    26919      +26     
- Misses      57535    57773     +238     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye
Kyle-Ye merged commit 87752c3 into main Nov 24, 2026
6 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/group_box branch November 24, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: accessibility Accessibility APIs, settings, semantics, or behavior. area: example Example apps, previews, sample projects, screenshots, or demo assets. area: view View APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior. type: feature New API, behavior, platform support, or user-facing capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement GroupBox

1 participant