Add saturation adjustment property to VisualEffectView - #58
Conversation
|
@efremidze 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
Co-authored-by: efremidze <2286277+efremidze@users.noreply.github.com>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
This PR adds saturation control to VisualEffectView, enabling Figma-style blur effects with color saturation adjustment.
New Features
UIKit API
SwiftUI API
Implementation Details
saturation: CGFloatproperty with default value1.0saturationDeltaFactorkey from the private blur effect API0.0= completely grayscale1.0= original saturation (default)> 1.0= increased saturation (more vibrant)scaleandblurRadiusExample App Updates
The example app now includes dual sliders to demonstrate both blur and saturation effects:
Usage Examples
The implementation maintains full backward compatibility and follows the established API patterns.
Fixes #55.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.