-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Jump Bar Overflow Accordion Effect #2045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Jump Bar Overflow Accordion Effect #2045
Conversation
@austincondiff — would love your input on this! |
@swiftlysingh Thanks so much for putting this together! This is a great start and really exciting to see it in action. Watching the screen recording, I think you're definitely on the right track. The basic accordion behavior is there, and the hover interaction feels pretty good, especially when you get to the animation. As you mentioned, the accordion behavior should only kick in when the content overflows. You’ll want to detect when the full breadcrumb path exceeds the available width of the container. A few things you might consider:
When you do expand on hover, to make it feel smooth: withAnimation(.easeInOut(duration: 0.2)) {
// toggle view state
} Thanks again for your work here! Happy to additional help if needed. Feel free to reach out on Discord in the help channel if you need another resource. |
Got everything working! 🎉 I've attached a screen recording for reference: Screen.Recording.2025-05-14.at.1.23.00.PM.movWe can further tweak the curve at which the crumbs collapse, as well as set the minimum threshold for the crumb width. Big thanks to @austincondiff for your help and input! Feedback and suggestions are always welcome. |
That looks very nice, @swiftlysingh. Great work! Minor feedback: If you compare to Xcode, you see how the text fades out at the trailing edge when truncated. I'd try to do something similar if you can. Also, layout priority is as follows:
If there is enough room, I have gotten it in a state where all the items in between the first and last are icons, the first and last are fully visible. As I resize it to be smaller, the first item starts to be truncated until they are all icons except the last item. When hovering over any of the truncated items, there is a fade out at the trailing edge of the last item. You are super close, really happy with the results. 👏 |
Updated the jump bar behavior with the following changes:
See the visual example here: Screen.Recording.2025-05-22.at.6.27.14.AM.mov |
Description
This PR introduces an initial implementation of an accordion-like effect for displaying file paths in the tab bar. The goal is to improve usability when file paths are too long to fit in the available space.
Current (Draft) Behavior:
Expected Behavior:
Request for Feedback:
Related Issues
Checklist
Screenshots
Screen.Recording.2025-05-13.at.9.32.18.PM.mov