Skip to content

feat: implement mapped views - #1208

Merged
Kyle-Ye merged 1 commit into
mainfrom
feature/mapped_views
Oct 24, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
feature/mapped_views

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add MappedViews and MappedViewElement to transform view-list elements while preserving IDs and dynamic traits.
  • Support nested content placeholders and mapped element reuse with a shared weak cache.
  • Add nine passing tests for element traversal, trait updates, placeholder composition, and reuse boundaries.

Closes #1209.

@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 Oct 24, 2026
@tuist

tuist Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 28106a3e9

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 35.9s 28106a3e9

@codecov

codecov Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.56522% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 30.98%. Comparing base (4ef7812) to head (ef18eee).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
Sources/OpenSwiftUI/View/MappedViews.swift 89.56% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1208      +/-   ##
==========================================
+ Coverage   26.71%   30.98%   +4.27%     
==========================================
  Files         884      953      +69     
  Lines       65704    77466   +11762     
==========================================
+ Hits        17550    24005    +6455     
- Misses      48154    53461    +5307     

☔ 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 force-pushed the feature/mapped_views branch from b2ec30f to 9cc9062 Compare October 24, 2026 14:20
@Kyle-Ye
Kyle-Ye requested a review from Mx-Iris as a code owner October 24, 2026 14:20
@Kyle-Ye
Kyle-Ye changed the base branch from release/0.24 to main October 24, 2026 14:21
@Kyle-Ye
Kyle-Ye force-pushed the feature/mapped_views branch from 9cc9062 to ef18eee Compare October 24, 2026 14:55
@Kyle-Ye
Kyle-Ye merged commit 095578f into main Oct 24, 2026
7 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/mapped_views branch October 24, 2026 15:12
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 MappedViews APIs

1 participant