Skip to content

Add trimmed shape API - #1025

Merged
Kyle-Ye merged 2 commits into
mainfrom
feature/trimmed_shape
Aug 26, 2026
Merged

Kyle-Ye merged 2 commits into
mainfrom
feature/trimmed_shape

Conversation

@Kyle-Ye

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

Copy link
Copy Markdown
Member

Summary

  • Add the _TrimmedShape shape wrapper and Shape.trim(from:to:) API with documentation.
  • Forward shape role, layout direction behavior, sizing, path generation, and animatable data through the wrapper.
  • Add trimmed-path boundary handling and focused test coverage.
  • Replace the temporary progress-view-local trim extension with the core API.

@github-actions github-actions Bot added area: graphics Color, shape, gradient, image, symbols, and graphics primitives. 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 26, 2026
@tuist

tuist Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
OpenSwiftUI ✅ 0 % 1078 0 1078 386032587

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 2m 28s 386032587

@codecov

codecov Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 15.38462% with 33 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.70%. Comparing base (eeee338) to head (620b946).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/OpenSwiftUICore/Shape/TrimmedShape.swift 0.00% 30 Missing ⚠️
Sources/OpenSwiftUICore/Shape/Path.swift 66.66% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1025   +/-   ##
=======================================
  Coverage   27.70%   27.70%           
=======================================
  Files         770      771    +1     
  Lines       60856    60891   +35     
=======================================
+ Hits        16858    16870   +12     
- Misses      43998    44021   +23     

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

Labels

area: graphics Color, shape, gradient, image, symbols, and graphics primitives. 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