Skip to content

feat: add gradient layer rendering - #1229

Merged
Kyle-Ye merged 7 commits into
feature/gradientfrom
feature/gradient_layer
Oct 28, 2026
Merged

Kyle-Ye merged 7 commits into
feature/gradientfrom
feature/gradient_layer

Conversation

@Kyle-Ye

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

Copy link
Copy Markdown
Member

Summary

  • Add layer rendering for linear, radial, elliptical, and angular gradients with clipped stops and timing curves.
  • Integrate shape-layer selection, asynchronous property updates, and gradient shadows.
  • Add cached perceptual color-space support and enable gradient UI snapshots.

Stack

Depends on #1226.

@Kyle-Ye
Kyle-Ye added this pull request to stack #1230 October 26, 2026 17:31
@github-actions github-actions Bot added area: graphics Color, shape, gradient, image, symbols, and graphics primitives. area: rendering DisplayList, render backends, renderer hosts, drawing, and effects. type: feature New API, behavior, platform support, or user-facing capability. labels Oct 26, 2026
@Kyle-Ye Kyle-Ye added this to the 0.25.0 milestone Oct 26, 2026
@Kyle-Ye Kyle-Ye linked an issue Oct 26, 2026 that may be closed by this pull request
@Kyle-Ye

Kyle-Ye commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

/uitest osui-iag update only-testing=OpenSwiftUIUITests/GradientUITests

@tuist

tuist Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 37bfa4a4f

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 3m 29s 37bfa4a4f

@codecov

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 680 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.34%. Comparing base (d27dd9f) to head (0765314).

Files with missing lines Patch % Lines
Sources/OpenSwiftUICore/Shape/ShapeLayer.swift 0.00% 440 Missing ⚠️
...enSwiftUICore/Graphic/Gradient/GradientLayer.swift 0.00% 207 Missing ⚠️
...ore/Render/DisplayList/DisplayListAsyncLayer.swift 0.00% 30 Missing ⚠️
...e/Render/DisplayList/DisplayListViewPlatform.swift 0.00% 3 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                  @@
##           feature/gradient    #1229      +/-   ##
====================================================
- Coverage             31.57%   31.34%   -0.23%     
====================================================
  Files                   981      982       +1     
  Lines                 80196    80761     +565     
====================================================
- Hits                  25322    25317       -5     
- Misses                54874    55444     +570     

☔ 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 commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

/uitest osui-iag update only-testing=OpenSwiftUIUITests/GradientUITests

@Kyle-Ye

Kyle-Ye commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

/uitest all all-configs

@github-actions github-actions Bot added the area: tests Test suites, UI tests, fixtures, snapshots, and test support code. label Oct 27, 2026
@Kyle-Ye
Kyle-Ye force-pushed the feature/gradient_layer branch from f0c8c6e to dad8aeb Compare October 27, 2026 17:02
@Kyle-Ye

Kyle-Ye commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

/uitest all all-configs

@github-actions github-actions Bot added the type: ci GitHub Actions, test infrastructure, runners, checks, or automation. label Oct 28, 2026
@Kyle-Ye

Kyle-Ye commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

/uitest all sui-iag

@Kyle-Ye

Kyle-Ye commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

/uitest all sui-ag

@Kyle-Ye
Kyle-Ye merged commit b480c9a into main Oct 28, 2026
11 of 12 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/gradient_layer branch October 28, 2026 16:37
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: rendering DisplayList, render backends, renderer hosts, drawing, and effects. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: ci GitHub Actions, test infrastructure, runners, checks, or automation. type: feature New API, behavior, platform support, or user-facing capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Gradient support

1 participant