Skip to content

fix(render): keep text and clips aligned during matched geometry animations - #1279

Merged
Kyle-Ye merged 4 commits into
mainfrom
optimize/uitest_diff
Nov 28, 2026
Merged

Kyle-Ye merged 4 commits into
mainfrom
optimize/uitest_diff

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Nov 28, 2026

Copy link
Copy Markdown
Member

Summary

  • Position styled text relative to its animated container so button labels stay aligned as the layout changes.
  • Respect per-run text interpolation settings and use the writing mode to resolve the default axis for numeric text transitions.
  • Allow display list items to merge under pure translations so rounded clips follow the animated frame.
  • Require exact frame matches in both matched geometry snapshot tests.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T17:33:57.083656Z d53192a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added area: animation Animation, transitions, transactions, or timing behavior. area: rendering DisplayList, render backends, renderer hosts, drawing, and effects. area: text Text, labels, line style, and text rendering APIs. impact: visual-diff Visual mismatch, screenshot diff, or rendering fidelity issue. type: bug Something is not working correctly. labels Nov 28, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d53192a678

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1012 to +1014
guard offset < otherStorage.length else {
stop.pointee = true
return

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Detect remaining source runs when the target is exhausted

When .checkInterpolationStrategy is enabled and the destination removes a trailing ordinary run, this guard stops enumeration with offset == otherStorage.length, so the final comparison incorrectly returns false. For example, changing "Time: " + unanimated("9") + " seconds" to "Time: " + unanimated("9") suppresses the required transition for deleting " seconds", even though that run is not marked unanimated. Track whether source runs remain when the destination is exhausted rather than treating destination exhaustion alone as a successful match.

Useful? React with 👍 / 👎.

@tuist

tuist Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 57dcade5e

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 1m 9s 57dcade5e

Reported by Tuist, faster builds and reliable tests for Xcode, Gradle, Bazel, and more.

@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 59.09091% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 35.15%. Comparing base (95ee561) to head (d53192a).

Files with missing lines Patch % Lines
...ces/OpenSwiftUICore/View/Text/Text/Text+View.swift 57.14% 27 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1279      +/-   ##
==========================================
+ Coverage   35.05%   35.15%   +0.10%     
==========================================
  Files        1046     1046              
  Lines       85554    85616      +62     
==========================================
+ Hits        29988    30097     +109     
+ Misses      55566    55519      -47     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye

Kyle-Ye commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

/uitest osui-iag update only-testing=OpenSwiftUIUITests/MatchedGeometryEffectUITests

@Kyle-Ye
Kyle-Ye merged commit 8e33c09 into main Nov 28, 2026
9 checks passed
@Kyle-Ye
Kyle-Ye deleted the optimize/uitest_diff branch November 28, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: animation Animation, transitions, transactions, or timing behavior. area: rendering DisplayList, render backends, renderer hosts, drawing, and effects. area: text Text, labels, line style, and text rendering APIs. impact: visual-diff Visual mismatch, screenshot diff, or rendering fidelity issue. type: bug Something is not working correctly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant