Repository navigation
feat(effects): add geometry and color effect APIs - #1139
Conversation
| /// | ||
| /// - Returns: An effect that applies `blendMode` to this view. | ||
| public func blendMode(_ blendMode: BlendMode) -> some VisualEffect { | ||
| rendererEffect(_BlendModeEffect(blendMode: blendMode)) |
There was a problem hiding this comment.
VisualEffect.rendererEffect requires its effect argument to be Sendable, but _BlendModeEffect is explicitly given an unavailable Sendable conformance above; this new wrapper therefore relies on an unavailable conformance and can fail to type-check when the new API is compiled.
Severity: high
🤖 Was this useful? React with 👍 or 👎
| set { amount = newValue } | ||
| } | ||
|
|
||
| package func effectValue(size: CGSize) -> DisplayList.Effect { |
There was a problem hiding this comment.
These new renderer effects add user-facing filter behavior and VisualEffect entry points, but the PR doesn't add committed tests for the DisplayList filter values or public modifiers; existing effect tests only cover scale/rotation animation, so regressions in the new color/blur/blend APIs can pass unnoticed. Other locations where this applies: Sources/OpenSwiftUICore/Render/RendererEffect/ContrastEffect.swift:29, Sources/OpenSwiftUICore/Render/RendererEffect/GrayscaleEffect.swift:29, Sources/OpenSwiftUICore/Render/RendererEffect/HueRotationEffect.swift:29, Sources/OpenSwiftUICore/Render/RendererEffect/SaturationEffect.swift:29.
Severity: medium
🤖 Was this useful? React with 👍 or 👎
🤖 Augment PR SummarySummary: Expands SwiftUI-compatible geometry and color effect APIs.
🤖 Was this summary useful? React with 👍 or 👎 |
🛠️ Tuist Run Report 🛠️Tests 🧪
Builds 🔨
|
Summary
VisualEffect.Viewmodifiers.HoverEffectContent, and remove unsupported hover SPI aliases.View.rotation3DEffecttoOpenSwiftUI.Validation