Skip to content

MatchedGeometryEffectClipShapeModifierExample buggy behavior #984

Closed

Description

@Kyle-Ye

Description

MatchedGeometryEffectClipShapeModifierExample does not render the same transition in OpenSwiftUI as it does in SwiftUI. The standard MatchedGeometryEffectModifierExample now behaves correctly, so the remaining problem appears specific to the clipShape overload and .clipRect rendering path.

Reproduction

Due to jcmosc/Compute#60, set up the project with Apple's AttributeGraph backend:

./setup.sh

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:

struct ContentView: View {
    var body: some View {
        MatchedGeometryEffectClipShapeModifierExample()
    }
}

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.

Activity

  1. added
    area: animation
    area: rendering
    impact: visual-diff
    type: bug
    on Aug 9, 2026
  2. changed the title [-]MatchedGeometryEffectClipShapeModifierExample has incorrect z-order and final position[/-] [+]MatchedGeometryEffectClipShapeModifierExample has behavior[/+] on Aug 9, 2026
  3. changed the title [-]MatchedGeometryEffectClipShapeModifierExample has behavior[/-] [+]MatchedGeometryEffectClipShapeModifierExample buggy behavior[/+] on Aug 9, 2026
  4. added
    contrib: help wanted
    on Aug 9, 2026
  5. Kyle-Ye commented on Nov 22, 2026

    @Kyle-Ye
    MemberAuthor

    Bisecting confirmed that #1034 fixed the clipped matched geometry transition. On iOS 18.5 with Apple's AttributeGraph, the animation still showed the wrong position and opacity at 8db4b71a. At 7dc2cee2, both matched SwiftUI.

    The first release to include the fix was 0.22.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: animationarea: renderingcontrib: help wantedimpact: visual-difftype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions