Skip to content

Implement ViewThatFits layout selection - #1033

Merged
Kyle-Ye merged 1 commit into
mainfrom
feature/view_that_fits
Aug 30, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
feature/view_that_fits

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Implement ViewThatFits child management, fit selection, layout-computer behavior, and platform representation hooks.
  • Add a shared upload-progress example with snapshot coverage for adaptive alternatives.
  • Add initialization and child-selection tests, including fallback to the final child.

@github-actions github-actions Bot added area: example Example apps, previews, sample projects, screenshots, or demo assets. area: layout Layout, geometry, safe area, alignment, stacks, or sizing. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: feature New API, behavior, platform support, or user-facing capability. labels Aug 30, 2026
@tuist

tuist Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
OpenSwiftUI ✅ 0 % 1105 0 1105 b9ac92f99

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 1m 10s b9ac92f99

@Kyle-Ye
Kyle-Ye force-pushed the feature/view_that_fits branch from a364e69 to 12a5f51 Compare August 30, 2026 08:50
@codecov

codecov Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.84024% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.22%. Comparing base (455c116) to head (12a5f51).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
Sources/OpenSwiftUI/Layout/ViewThatFits.swift 82.84% 29 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1033       +/-   ##
===========================================
+ Coverage   17.22%   29.22%   +12.00%     
===========================================
  Files         724      772       +48     
  Lines       53756    61770     +8014     
===========================================
+ Hits         9257    18054     +8797     
+ Misses      44499    43716      -783     

☔ 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 8db4b71 into main Aug 30, 2026
8 of 9 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/view_that_fits branch August 30, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: example Example apps, previews, sample projects, screenshots, or demo assets. area: layout Layout, geometry, safe area, alignment, stacks, or sizing. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: feature New API, behavior, platform support, or user-facing capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant