Skip to content

WIP: Gallery expanding animation (#14)#39

Open
vanities wants to merge 1 commit intomasterfrom
14-gallery-expanding-animation
Open

WIP: Gallery expanding animation (#14)#39
vanities wants to merge 1 commit intomasterfrom
14-gallery-expanding-animation

Conversation

@vanities
Copy link
Copy Markdown
Owner

Summary

  • Replace .sheet gallery presentation with ZStack overlay + matchedGeometryEffect for hero animation from thumbnail to fullscreen
  • Add interactive drag-to-dismiss on first page via UIScrollView boundary bounce detection in VerticalPagerView
  • Add close button (X) for dismissing from any page
  • Keep .sheet fallback when gallery is opened from RepliesView context
  • Add UI test with screenshots for expand + dismiss flow

Known Issues

  • Interactive drag-to-dismiss is janky — UIScrollView rubber-banding limits the offset range, making the visual feedback feel stiff
  • Animation timing between matchedGeometryEffect and the pager content could be smoother
  • Needs manual testing and polish

Test plan

  • Tap thumbnail → gallery expands with spring animation
  • Drag down on first media → gallery moves with finger, dismisses on threshold
  • Swipe to page 2+ → close button (X) dismisses gallery
  • Swipe back to page 0 → drag-to-dismiss works again
  • Zoom into image → drag-to-dismiss disabled
  • Open gallery from replies → falls back to sheet presentation

Closes #14

🤖 Generated with Claude Code

Replace sheet-based gallery presentation with ZStack overlay using
matchedGeometryEffect for hero animation between thumbnail and
fullscreen. Add drag-to-dismiss on first page via UIScrollView
boundary detection, close button for other pages. Still janky -
needs polish on interactive dismiss and animation timing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gallery expanding animation

1 participant