Skip to content

feat: add basic CGColor APIs - #11

Merged
Kyle-Ye merged 2 commits into
mainfrom
bugfix/817
Oct 25, 2026
Merged

Kyle-Ye merged 2 commits into
mainfrom
bugfix/817

Conversation

@Kyle-Ye

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

Copy link
Copy Markdown
Member

Add basic CGColor APIs: RGB and sRGB constructors, grayscale constructors, component and alpha access, black/white/clear colors, copying, and value equality and hashing. Preserve built-in color identity when copying or comparing colors.

Validation: The same 13 behavior tests pass against native CoreGraphics and OpenCoreGraphics on macOS with Swift 6.1.2. The complete Linux suite passes 33 tests. iOS and visionOS Simulator type checks pass.

Supports OpenSwiftUIProject/OpenRenderBox#37.

@codecov-commenter

codecov-commenter commented Oct 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.83%. Comparing base (1d4657f) to head (1fec59d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   70.00%   74.83%   +4.83%     
==========================================
  Files          14       16       +2     
  Lines         630      751     +121     
==========================================
+ Hits          441      562     +121     
  Misses        189      189              

☔ 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 changed the title feat: add CGColor stub feat: add basic CGColor APIs Oct 25, 2026
@Kyle-Ye
Kyle-Ye merged commit 0d7a0d0 into main Oct 25, 2026
3 checks passed
@Kyle-Ye
Kyle-Ye deleted the bugfix/817 branch October 25, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants