Skip to content

feat: add subview and section extraction APIs - #1243

Merged
Kyle-Ye merged 7 commits into
mainfrom
feature/subviews_collection
Nov 1, 2026
Merged

Kyle-Ye merged 7 commits into
mainfrom
feature/subviews_collection

Conversation

@Kyle-Ye

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

Copy link
Copy Markdown
Member

Summary

  • Add subview and section collections so custom containers can inspect and transform resolved content.
  • Integrate Group and ForEach extraction with view-list identity, traits, and rendering.
  • Include deprecated SPI compatibility and public API documentation.

Validation

  • Checked public API clients and focused collection and rendering probes.
  • Verified optimized Group initializer code generation.

Closes #1234

@Kyle-Ye Kyle-Ye added this to the 0.26.0 milestone Nov 1, 2026
@github-actions github-actions Bot added area: view View APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior. type: feature New API, behavior, platform support, or user-facing capability. labels Nov 1, 2026
@tuist

tuist Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 df1b1d5fa

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 56.5s df1b1d5fa

@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0.60120% with 496 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.82%. Comparing base (c79b90a) to head (d58b98f).
⚠️ Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...penSwiftUICore/View/Input/SectionAccumulator.swift 0.00% 188 Missing ⚠️
.../OpenSwiftUICore/View/Subview/Group+Sections.swift 0.00% 90 Missing ⚠️
.../OpenSwiftUICore/View/Subview/Group+Subviews.swift 0.00% 56 Missing ⚠️
Sources/OpenSwiftUICore/View/Input/ViewList.swift 0.00% 37 Missing ⚠️
Sources/OpenSwiftUICore/View/Subview/Subview.swift 0.00% 33 Missing ⚠️
...s/OpenSwiftUI/View/Subview/SubviewCollection.swift 0.00% 30 Missing ⚠️
...nSwiftUICore/View/DynamicViewContent/ForEach.swift 12.50% 21 Missing ⚠️
...penSwiftUICore/View/Subview/ForEach+Subviews.swift 0.00% 21 Missing ⚠️
...penSwiftUICore/View/Subview/ForEach+Sections.swift 0.00% 18 Missing ⚠️
Sources/OpenSwiftUI/View/Subview/Subview.swift 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1243      +/-   ##
==========================================
+ Coverage   27.75%   31.82%   +4.06%     
==========================================
  Files         908      990      +82     
  Lines       67675    81703   +14028     
==========================================
+ Hits        18782    25999    +7217     
- Misses      48893    55704    +6811     

☔ 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 23f0cf8 into main Nov 1, 2026
8 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/subviews_collection branch November 1, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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 SubviewsCollection

1 participant