Skip to content

feat(material): add material APIs and rendering support - #1253

Merged
Kyle-Ye merged 19 commits into
mainfrom
feature/material
Nov 7, 2026
Merged

Kyle-Ye merged 19 commits into
mainfrom
feature/material

Conversation

@Kyle-Ye

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

Copy link
Copy Markdown
Member

Summary

  • Add Material presets, appearance controls, custom providers, and background prominence APIs.
  • Render CoreMaterial and macOS material layers, backdrop filters, and vibrant foreground fills.
  • Add documented Material examples and six light/dark snapshot cases, and restore material backgrounds in the Timeline examples.

Validation

  • Material snapshot comparisons passed all six light/dark cases on iOS 18.5 Simulator and macOS 15.7.3.

Dependency

@github-actions github-actions Bot added area: example Example apps, previews, sample projects, screenshots, or demo assets. 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: feature New API, behavior, platform support, or user-facing capability. labels Nov 7, 2026
@tuist

tuist Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 aa558c357

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 2m 54s aa558c357

@Kyle-Ye

Kyle-Ye commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

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

@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 1.09336% with 1176 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.20%. Comparing base (93628e2) to head (77020df).

Files with missing lines Patch % Lines
...e/Shape/ShapeStyle/Material/MaterialProvider.swift 0.00% 220 Missing ⚠️
.../ShapeStyle/Material/CoreMaterialDefinitions.swift 0.00% 201 Missing ⚠️
...hape/ShapeStyle/Material/MaterialDefinitions.swift 0.00% 195 Missing ⚠️
...iftUICore/Shape/ShapeStyle/Material/Material.swift 4.34% 176 Missing ⚠️
...urces/OpenSwiftUICore/Graphic/GraphicsFilter.swift 0.00% 157 Missing ⚠️
...tUICore/Shape/ShapeStyle/ShapeStyleRendering.swift 0.00% 143 Missing ⚠️
.../OpenSwiftUICore/Graphic/GraphicsConversions.swift 0.00% 26 Missing ⚠️
...urces/OpenSwiftUICore/Graphic/BackdropEffect.swift 0.00% 17 Missing ⚠️
...ources/OpenSwiftUICore/Graphic/Shader/Shader.swift 0.00% 16 Missing ⚠️
...es/OpenSwiftUICore/Graphic/Color/ColorMatrix.swift 0.00% 11 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1253      +/-   ##
==========================================
+ Coverage   28.04%   31.20%   +3.16%     
==========================================
  Files         936     1018      +82     
  Lines       69192    83439   +14247     
==========================================
+ Hits        19405    26039    +6634     
- Misses      49787    57400    +7613     

☔ 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 2b549f3 into main Nov 7, 2026
7 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/material branch November 7, 2026 09:39
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: 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: 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