Repository navigation
Conversation
chenqi92
reviewed
Dec 2, 2026
chenqi92
left a comment
Owner
There was a problem hiding this comment.
I can't take this one as is. The motion values have to stay in line with the 2.0 interface, and the Mac cover flight has bugs that block it.
Not taking:
- The Mac cover-flight engine (overlay host, snapshot cache, Continuum staging, arc / rim / 1.032 zoom, delayed pop and root reveal), and
FluentDrillTransitionPolicy:- Esc or Back twice during the close freezes the detail column.
close()cancels the completion task beforebeginExit, andbeginExitreturns nil while exiting. The phase stays.exiting, the overview stays disabled and theTimelineViewkeeps running at 120 Hz. - Album to "Go to Artist" to Back no longer returns to the album: the overlay is reset and the album isn't in the path. Opening another album or a playlist loses it too.
- Clicking an album reads the cover from disk on the main actor (custom artwork always, other covers on a memory miss). The NSCache holds full-size images.
- The
TimelineViewwraps the whole NavigationStack, so every frame of the flight rebuilds the column. The container now also re-renders on every library publish (visibleSongCollectionRevision). - Clicks on the overview and on Back are ignored while the transition runs, and every pop waits 170 ms. Main is instant here.
- On reversal only the cover is continuous; the layers jump in one frame.
- Albums would open two ways on Mac (overlay vs. NavigationStack). Favorites and semantic search still push.
- Esc or Back twice during the close freezes the detail column.
- Removing
.transaction { $0.animation = nil }on the detail root. It's there on purpose (it fixed playlist hangs): with it gone, the album grid/list switch, folder navigation and playlist reordering run inside animation transactions. PMMotionchanges (.panelspring 0.28/0.3,pmPageEnter240 ms and 10 pt, unused.drillIn/.drillOut). These values match the 2.0 skin table, and.paneldrives about 15 places, including now-playing sheets.- iOS hero overscroll stretch. It belongs to the 2.0 headers, and the title block separates from the artwork by about 96 pt at a 200 pt pull.
These are fine if you send them as a separate, smaller PR on current main:
- Sliding sidebar selection using
PMMotion.selectionand the existingpmRowBackgroundfill, without the 3 pt accent bar. It also needs to actually animate: the route change runs withdisablesAnimations, so.animation(_:value:)won't fire there. - Sliding pill on the album grid/list switch, with
.pmAnimation(.selection)only. Drop thewithAnimationaroundalbumViewModeso the grid/list swap stays out of the transaction. - iOS zoom sources clipped to the artwork / avatar, plus zoom for genres. For smart playlists and spoken-word books, clip the source to the artwork too (now it's the whole row / label). The Home smart-playlist tile has a destination but no source.
- Heart burst via the existing
PMLikeBurst, and the waveform on the Mac album playing row. pmPageEnterfor inline artist / genre detail.- New hover in scrolling content must use the
pmScrolling*/PMScrollingButtonvariants (#380).GenreLibraryViewadds a raw.pmHoverLiftin a horizontal ScrollView.
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.
Closes #541
Summary
Upgrades navigation transitions and micro-interactions across macOS and iOS to a cohesive Windows Fluent 2–inspired motion language. Replaces abrupt album detail swaps on macOS with a 120Hz zero-blink connected-cover flight engine across all album entry points, adds Fluent Continuum 3-layer detail staging and a sliding sidebar indicator, and unifies iOS cover-only zoom transitions and elastic hero overscroll stretch.
Changes
PrimuseKit/Sources/PrimuseKit/Interface/ScreenChangeTransitionPolicy.swift,FluentDrillTransitionPolicyTests.swift):enterEase(0.10, 0.90, 0.20, 1.0)0.40szero-overshoot;exitEase(0.16, 0.88, 0.26, 1.0)0.30s), arc-liftedCoverFramewith mid-flight specular rim highlight (borderHighlightOpacity), clamped clicked-tile overview dive-in anchor (1.0 -> 1.032, avoiding viewport edge gaps), 3-layer ContinuumLayerFrame(edge-to-edge backdrop, horizontal header unfold, vertical tracklist settle, fast exit clear), mid-air exit interruption state machine (beginExit(fromCurrentCoverRect:...)), Reduce Motion crossfade fallback, andheroOverscrollFramestretch math.FluentDrillTransitionPolicyTestscovering curves, exact endpoints, arc/rim, visibility/reduce-motion degradation, clamped anchors, Continuum staging, mid-air live interruption, and hero overscroll bounds.MacDetailContainer.swift,MacLibraryHeader.swift,AlbumDetailView.swift):MacFluentAlbumDrillHosttoMacDetailContainerwrapping the detailNavigationStackand drove flight viaTimelineView(.animation(paused:))with dynamic destination-rect calibration and seamless live mid-airEsc/Back reversal.MacFluentCoverSnapshot(24-itemNSCache+ synchronous memory/disk artwork resolution) so flying covers render actual artwork on Frame 0 without grey placeholder flashes.MacLibraryHeadermetadata andAlbumDetailViewtracklist, upgraded macOS album playing-row indicator toSongRowPlayingWaveform, and added favorite heart burst on detail headers.MacFluentAlbumLink+.macFluentCoverSourceacrossAlbumGridView,AlbumCardView,MacHomeView,MacHomeAlbumPickHero,MacHomeRecentlyAddedPage,HomeForYouSection,ArtistDetailView,GenreLibraryView,ReleaseDateLibraryView,ReleaseDateLibraryView+Catalog,SearchView, and.primuseDetailOpenAlbum.MacSidebar, sliding segmented highlight pill toMacSegmentChrome(AlbumGridView), subtle hover lift (1.022x) + pressable tile feedback, unifiedPMPageEnterModifier&PMMotioncurves (ArtistListView,GenreLibraryView,MacContentView,PMTitleBar).MediaZoomTransitionID(ContentView.swift) to Genres, Smart Playlists, and Spoken Word Books (LibraryView,PlaylistListView,GenreLibraryView,SpokenWordLibraryView,HomeView,HomeHeroRecommendations,HomeForYouSection,SearchView), and addedMediaZoomSourceShape(.roundedRect/.circle) to clip zoom sources strictly to artwork/avatar bounds.pmHeroOverscrollStretch()(PMMotion.swift) to full-bleed headers inAlbumDetailView,ArtistDetailView, andCollectionCoverWallHeader(Playlist / Smart Playlist).Acceptance Criteria Coverage
Verification
Verified on commit
5d47766f5(based onorigin/mainc4ee8513e):PrimuseKitunit tests (swift test --package-path PrimuseKit --filter 'FluentDrillTransitionPolicyTests|ScreenChangeTransitionPolicyTests'): 25/25 passed.xcodebuild build -scheme PrimuseMac -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NO: BUILD SUCCEEDED.xcodebuild build -scheme Primuse -destination 'generic/platform=iOS' CODE_SIGNING_ALLOWED=NO: BUILD SUCCEEDED.xcodebuild build -scheme PrimuseTV -destination 'generic/platform=tvOS' CODE_SIGNING_ALLOWED=NO: BUILD SUCCEEDED.mise exec xcodegen@2.46.0 -- ruby scripts/check-widget-platforms.rb: passed.mise exec xcodegen@2.46.0 -- python3 -I scripts/gate/gate.py --root . --require-all --strict-baselines --range origin/main..HEAD: 0 errors, 0 warnings, 0 skipped.python3 -I scripts/gate/gate.py --root . --commits origin/main..HEAD: 0 errors, 0 warnings, 0 skipped.