Skip to content

feat(color): enable CGColor APIs across platforms - #1227

Merged
Kyle-Ye merged 3 commits into
mainfrom
optimize/cgcolor
Oct 26, 2026
Merged

Kyle-Ye merged 3 commits into
mainfrom
optimize/cgcolor

Conversation

@Kyle-Ye

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

Copy link
Copy Markdown
Member

Summary

  • Update OpenCoreGraphics to 3440823 in both dependency lockfiles.
  • Enable CGColor conversions, static color providers, opacity copies, and layer color boxing on non-Darwin platforms through OpenCoreGraphicsShims.
  • Expose the CoreGlue2 summary-symbol method across platforms while keeping its Objective-C attribute conditional, and remove the unused CoreGraphics import.

Validation

  • Linux package build and focused color checks passed during implementation.
  • Focused color API and method signature checks passed on Linux, macOS, iOS Simulator, and visionOS Simulator.

Dependency

@github-actions github-actions Bot added area: graphics Color, shape, gradient, image, symbols, and graphics primitives. platform: Linux Linux-specific behavior or support. type: feature New API, behavior, platform support, or user-facing capability. labels Oct 25, 2026
@codecov

codecov Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 31.20%. Comparing base (2f0b989) to head (a57daca).

Files with missing lines Patch % Lines
Sources/OpenSwiftUICore/Graphic/Color/Color.swift 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1227   +/-   ##
=======================================
  Coverage   31.19%   31.20%           
=======================================
  Files         977      977           
  Lines       78987    78984    -3     
=======================================
+ Hits        24643    24647    +4     
+ Misses      54344    54337    -7     

☔ 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.

@tuist

tuist Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 12c09252f

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 52.3s 12c09252f

@Kyle-Ye
Kyle-Ye merged commit d811da2 into main Oct 26, 2026
7 checks passed
@Kyle-Ye
Kyle-Ye deleted the optimize/cgcolor branch October 26, 2026 07:48
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. platform: Linux Linux-specific behavior or support. 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