Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

MatchedGeometryEffectClipShapeModifierExample buggy behavior

Offen
#984 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Ruhig
Tech-Stack
swift
Bereich
frontend

Rechercherichtung

Run ./setup.sh to use Apple's AttributeGraph backend, then set MatchedGeometryEffectClipShapeModifierExample as the root view and reproduce the transition. Compare it with MatchedGeometryEffectModifierExample and trace the clipShape overload and .clipRect rendering path. Done means the clipped content matches SwiftUI's compositing order during the transition and finishes aligned with the destination frame.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area: animation area: rendering contrib: help wanted impact: visual-diff type: bug

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.

Vorherrschende Sprache
Swift
Sterne
2.5k
Forks
84
Ø Merge
2 Std. 8 Min.
Gemergte PRs (30 T.)
62

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus OpenSwiftUIProject/OpenSwiftUI

Alle Issues in OpenSwiftUIProject/OpenSwiftUI

Ähnliche Issues

Weitere Issues zu Swift

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.