Skip to content

Conversation

@Kyle-Ye
Copy link
Collaborator

@Kyle-Ye Kyle-Ye commented Jan 18, 2026

No description provided.

@augmentcode
Copy link

augmentcode bot commented Jan 18, 2026

🤖 Augment PR Summary

Summary: This PR adds core support for a redacted placeholder image, enabling image redaction to function end-to-end.

Changes:

  • Implements GraphicsImage.redact(in:) to replace image contents with a low-opacity foreground color fill
  • Adds Image.redacted backed by a new ImageProvider that resolves a 1×1 resizable color image
  • Refactors CGImageProvider to reuse the new GraphicsImage.redact helper
  • Updates the example app to show a new AsyncImageExample and switches the default ContentView sample

Technical Notes: The redaction color is derived from the resolved foreground color and multiplied by an opacity factor (0.16) to match existing redaction behavior.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

@codecov
Copy link

codecov bot commented Jan 18, 2026

Codecov Report

❌ Patch coverage is 0% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 28.14%. Comparing base (a198635) to head (6a52218).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...UICore/Data/EnvironmentKeys/RedactionReasons.swift 0.00% 19 Missing ⚠️
...s/OpenSwiftUICore/View/Image/CGImageProvider.swift 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #731      +/-   ##
==========================================
- Coverage   28.14%   28.14%   -0.01%     
==========================================
  Files         603      603              
  Lines       36941    36955      +14     
==========================================
+ Hits        10398    10400       +2     
- Misses      26543    26555      +12     

☔ View full report in Codecov by Sentry.
📢 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 force-pushed the feature/async_image branch from 42d791b to 6a52218 Compare January 18, 2026 15:54
@Kyle-Ye Kyle-Ye merged commit 11fafa7 into main Jan 18, 2026
7 of 8 checks passed
@Kyle-Ye Kyle-Ye deleted the feature/async_image branch January 18, 2026 15:54
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