-
Notifications
You must be signed in to change notification settings - Fork 82
MatchedGeometryEffectClipShapeModifierExample buggy behavior #984
Copy link
Copy link
Open
Labels
area: animationAnimation, transitions, transactions, or timing behavior.Animation, transitions, transactions, or timing behavior.area: renderingDisplayList, render backends, renderer hosts, drawing, and effects.DisplayList, render backends, renderer hosts, drawing, and effects.contrib: help wantedPR contribution is appreciated.PR contribution is appreciated.impact: visual-diffVisual mismatch, screenshot diff, or rendering fidelity issue.Visual mismatch, screenshot diff, or rendering fidelity issue.type: bugSomething is not working correctly.Something is not working correctly.
Description
Activity
Metadata
Metadata
Assignees
Labels
area: animationAnimation, transitions, transactions, or timing behavior.Animation, transitions, transactions, or timing behavior.area: renderingDisplayList, render backends, renderer hosts, drawing, and effects.DisplayList, render backends, renderer hosts, drawing, and effects.contrib: help wantedPR contribution is appreciated.PR contribution is appreciated.impact: visual-diffVisual mismatch, screenshot diff, or rendering fidelity issue.Visual mismatch, screenshot diff, or rendering fidelity issue.type: bugSomething is not working correctly.Something is not working correctly.
Description
MatchedGeometryEffectClipShapeModifierExampledoes not render the same transition in OpenSwiftUI as it does in SwiftUI. The standardMatchedGeometryEffectModifierExamplenow behaves correctly, so the remaining problem appears specific to theclipShapeoverload and.clipRectrendering path.Reproduction
Due to jcmosc/Compute#60, set up the project with Apple's AttributeGraph backend:
Do not use
./setup.sh --compute, because the example currently crashes with the Compute/IAG backend.Then use the clip-shape example as the root view:
Run the Example app with OpenSwiftUI.
Expected behavior
The clipped content transitions between the source and destination frames with the same compositing order as SwiftUI, then finishes exactly at the destination frame.
Actual behavior
The transitioning clipped content remains visually on top throughout the animation, and its final rendered position does not align with the destination endpoint.