Skip to content

feat: add Section view APIs - #1244

Merged
Kyle-Ye merged 15 commits into
mainfrom
feature/sections
Nov 1, 2026
Merged

Kyle-Ye merged 15 commits into
mainfrom
feature/sections

Conversation

@Kyle-Ye

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

Copy link
Copy Markdown
Member

Summary

  • Add Section initializers, expansion bindings, collapsibility, and section style selection.
  • Add section actions and move/delete interactions, with platform item readers and strategies.
  • Add help text and tooltip support for sidebar section actions.

Validation

The updated style files pass Swift syntax checks for iOS, macOS, and visionOS.

Closes #1240

@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 a4f702653

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 2m 7s a4f702653

@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 523 lines in your changes missing coverage. Please review.
✅ Project coverage is 28.03%. Comparing base (23f0cf8) to head (3f70c1e).

Files with missing lines Patch % Lines
Sources/OpenSwiftUI/View/Section/Sections.swift 0.00% 73 Missing ⚠️
...ntegration/PlatformItems/PlatformItemsReader.swift 0.00% 61 Missing ⚠️
...ources/OpenSwiftUI/View/Help/TooltipModifier.swift 0.00% 61 Missing ⚠️
Sources/OpenSwiftUI/View/Section/Section.swift 0.00% 52 Missing ⚠️
...egration/PlatformItems/PlatformItemsStrategy.swift 0.00% 36 Missing ⚠️
.../View/Section/SectionedIdentifierAccumulator.swift 0.00% 31 Missing ⚠️
Sources/OpenSwiftUI/View/Help/HelpStyle.swift 0.00% 30 Missing ⚠️
.../OpenSwiftUI/View/Section/ListSectionSpacing.swift 0.00% 28 Missing ⚠️
...s/OpenSwiftUI/View/Section/PlainSectionStyle.swift 0.00% 26 Missing ⚠️
Sources/OpenSwiftUI/View/List/OnMove.swift 0.00% 23 Missing ⚠️
... and 9 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1244      +/-   ##
==========================================
- Coverage   31.81%   28.03%   -3.78%     
==========================================
  Files         990      935      -55     
  Lines       81703    69190   -12513     
==========================================
- Hits        25991    19397    -6594     
+ Misses      55712    49793    -5919     

☔ 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 80211c5 into main Nov 1, 2026
7 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/sections branch November 1, 2026 16:19
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 Section APIs

1 participant