Repository navigation
Keep snap-preview material and geometry in sync - #1900
Merged
Merged
Conversation
This was referenced Oct 8, 2026
kiteretsu903
force-pushed
the
fix/review-snap-preview
branch
from
October 9, 2026 02:50
5cfc628 to
0d31200
Compare
kiteretsu903
marked this pull request as ready for review
October 9, 2026 02:51
kiteretsu903
force-pushed
the
fix/review-snap-preview
branch
from
October 10, 2026 02:51
0d31200 to
700f855
Compare
rxhanson
reviewed
Oct 12, 2026
rxhanson
left a comment
Owner
There was a problem hiding this comment.
Looks good, I appreciate that you had turned this into its own pull request. Just one comment to address (and, unfortunately some merge conflicts).
|
|
||
| private func execute(_ originalParameters: ExecutionParameters) { | ||
| var parameters = originalParameters | ||
| var completionForwarded = false |
Owner
There was a problem hiding this comment.
The completionForwarded logic isn't very self-explanatory and there isn't any context in this function that provides it. If possible I prefer self-documenting code to comments, but in this case I think we need at least some kind of comment to explain context. The shortcut manager is a central piece of logic and providing the context up front makes it easier to make changes to it in the future.
Contributor
Author
There was a problem hiding this comment.
Got cha! Fixed and resolved conflicts
kiteretsu903
force-pushed
the
fix/review-snap-preview
branch
from
October 13, 2026 01:31
700f855 to
b4c668a
Compare
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This keeps the snap target preview visually aligned while dragging a window toward a screen edge or switching between snap targets. The blur should fill the preview shape throughout the transition, with its border and shadow moving together, rather than appearing to slide into place separately.
The underlying problem is that the preview's host window and its material can animate on different timelines, especially on first appearance. In the combined Liquid Glass build, this showed up as the glass surface appearing to float down from above on the first preview. This change keeps the host stationary and advances the preview surface, material, outline, and shadow together; the separate Glass PR supplies the material.
This concerns the target preview, not the movement of the actual application window. It therefore also improves preview rendering when window animation is disabled.
Behavior
Implementation and dependency
PreviewTransitiongroups related transition state and timing. The preview owns its rendering lifecycle; window placement only supplies completion and cancellation signals.The prepared implementation builds on the isolated animation change for those handoff signals. Liquid Glass is a separate follow-up that reuses this geometry path, so material-specific fixes do not need a second preview animation implementation.
Validation
The full branch XCTest suite passed (526 tests, including existing tests). The dependent Glass and combined builds also passed their automated suites.
A complete visual pass over first/repeated appearance, rapid retargeting, dismissal, and no-blur/standard-blur/Glass combinations remains pending. Automated lifecycle and geometry checks do not replace that visual inspection.