Skip to content

#732 Keep the split detail pane in step with the sidebar animation - #733

Merged
ivanfenenko merged 1 commit into
mainfrom
fix/732-split-pane-sidebar-animation
Oct 19, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
fix/732-split-pane-sidebar-animation

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Toggling the Home sidebar on iPad / opened iPhone Duo animated the detail pane (a UIKit-backed NavigationStack) on its own faster curve, so its title, subtitle and rows drifted over the sidebar mid-animation.
  • OpenCodeSplitPane now interpolates the leading and divider widths through a private Animatable wrapper and lays every pane out at plain widths each frame, the same path a divider drag already takes. Timing stays easeOut(0.3).
  • The bug predates #723 iPhone Duo support on iOS #725; it reproduces on the commit before it.

Checks

  • Built and ran on the iPad Pro 13" (iOS 26.5) simulator against a local opencode server. Recorded sidebar collapse and reopen before and after. Frame by frame, the sidebar edge, sidebar toggle, title and subtitle now move together, at about 60 fps in the sim.
  • Divider drag still resizes the sidebar.
  • Unit tests not run: split-pane layout logic is unchanged.

Issue

Risks / Follow-ups

  • The detail pane re-lays out every frame during the 0.3 s toggle, as it already does during a drag. Worth a glance on a real iPad with a long chat.
  • Not checked on the iPhone Duo simulator. In Book pose the fold locks the divider, and the toggle path there is unchanged.
  • Android not checked; the cause is specific to the iOS UIKit-hosted NavigationStack.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need.

The detail pane is a UIKit-backed NavigationStack, so animating its frame width
left its hosted content on its own faster curve, drifting over the sidebar
while it collapsed or opened. The toggle now interpolates the pane widths
through an Animatable wrapper that lays the panes out at plain widths every
frame, the way a divider drag does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko
ivanfenenko marked this pull request as ready for review October 19, 2026 09:06
@ivanfenenko
ivanfenenko merged commit 0236adb into main Oct 19, 2026
@ivanfenenko
ivanfenenko deleted the fix/732-split-pane-sidebar-animation branch October 19, 2026 09:06
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.

iOS split view: detail pane drifts over the sidebar while it collapses or opens

1 participant