Repository navigation
feat(effects): implement visual and custom hover effects - #1136
Conversation
| size: inputs.size, | ||
| transform: inputs.transform, | ||
| environment: inputs.environment, | ||
| safeAreaInsets: .init(), |
There was a problem hiding this comment.
This constructs the GeometryProxy with an empty safe-area attribute instead of the view's inputs.safeAreaInsets, so proxy.safeAreaInsets inside visualEffect always falls back to zero. That breaks effects that depend on the container's safe-area data even though GeometryReader and renderer effects forward the same input.
Severity: medium
🤖 Was this useful? React with 👍 or 👎
| switch self { | ||
| case let .opacity(opacity): | ||
| return .opacity(opacity) | ||
| case let .clip(path, _, _): |
There was a problem hiding this comment.
Converting .clip to HoverEffectContentList.Effect.clip(path) drops the FillStyle that HoverEffectContent.clipShape(_:style:) just accepted. Non-default styles such as even-odd fill or antialiasing therefore render as the default style in hover effects.
Severity: medium
🤖 Was this useful? React with 👍 or 👎
| /// | ||
| /// struct FadeInHoverEffect: CustomHoverEffect { | ||
| /// func body(content: Content) -> some CustomHoverEffect { | ||
| /// content.hoverEffect { effect, isActive, proxy in |
There was a problem hiding this comment.
These examples reference content.hoverEffect and the View.hoverEffect modifier, but no hoverEffect overload is defined anywhere in the repository. The documented custom effect cannot compile, and the new _makeCustomHoverEffect evaluation path has no public entry point.
Severity: medium
🤖 Was this useful? React with 👍 or 👎
|
👀 Human review needed JustificationThis PR adds ~1,529 lines across 10 files, implementing new core rendering and effects infrastructure rather than a mechanical or documentation-only change:
The size, new public surface area, and behavioral rendering/animation/accessibility logic place this beyond the automatic low-risk threshold, so a human reviewer should verify correctness. Reviewed commit 3bede44 |
🤖 Augment PR SummarySummary: Replaces placeholder effects with core graph-based visual and custom hover-effect support.
🤖 Was this summary useful? React with 👍 or 👎 |
🛠️ Tuist Run Report 🛠️Tests 🧪
Builds 🔨
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## feature/opacity #1136 +/- ##
===================================================
- Coverage 26.59% 26.41% -0.18%
===================================================
Files 823 830 +7
Lines 61807 62143 +336
===================================================
- Hits 16435 16416 -19
- Misses 45372 45727 +355 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Stack
Depends on #1135.