Skip navigation
Split layout framework update. Since the last video: focus views animate, corner drags can move both…
0:00 / 0:23

Split layout framework update. Since the last video: focus views animate, corner drags can move both…

Mitchell Hashimoto

@mitchellh243K followers

Visit on X
1,594 likesDownloadOriginal post

105,164 views

Split layout framework update. Since the last video: focus views animate, corner drags can move both axes, cross-window drag and drop with animation, all animations backed by CoreAnimation, and full accessibility framework integration (e.g. compat with VoiceOver). The focus view work was the hardest and most complicated. We allow caller-provided SwiftUI views for the focus style, but have to drop that back to a native AppKit/UIKit hosted view for smooth CoreAnimation integration with our other animations so they move in lock-step with our other stuff. Lot of work to get that to work, but I think it turned out great. The caller lives in easy SwiftUI land we handle that complexity. The animation timings and curves need to be tweaked. I think some animations are too long or don't feel right. But thats just parameterization at this point...

37 Comments

Comments from the original post on X (Twitter)

  • Elias's profile picture

    @elias_andualem8

    Looks awesome! I'm probably going to steal some ideas from the demo to showcase a similar library I'm working on 🤓 Are you using the same tree across multiple windows, or detach into its own? PS. Is this gonna be used in Ghostty?

    4 likes

  • Jonny Gravity's profile picture

    @jonnygravity

    Mosaics are such an accepted, poorly solved problem. Cool to see fresh work in this space! I'm doing some work to refine the mosaic in my tool. Been exploring the idea of cross-boundary splits; being able to drop to a far edge to split across multiple panes at a time. Nothing I hate more than having to shuffle panes to get the layout I want. Does SuperSplit support anything like that?

    4 likes

  • Quentin Romero Lauro's profile picture

    @Qromerolauro

    github link soon?

    3 likes

  • Mitchell Hashimoto's profile picture

    @mitchellh

    Going to integrate it into a real app I'm building first in order to test it "in the real" (up to this point its been just framework dev) to make sure I iron out the stupid I find. Then yeah.

    23 likes

  • Quentin Romero Lauro's profile picture

    @Qromerolauro

    Amazing thank you! Built my own shitty split layout framework for my browser, so really looking forward to it

    3 likes

  • Jimmy Lee's profile picture

    @wwwjim

    @dimitrijknight This looks really clean

    2 likes

  • smiz's profile picture

    @__smiz

    crazy idea - on top of being able to focus on an individual pane, can there be a "meta focus"? i'm wondering if i can have a cheap llm router to take what i'm saying and apply it to the right pane(s)

    1 like

  • Mitchell Hashimoto's profile picture

    @mitchellh

    Focus is all caller-provided so you can do this.

    8 likes

  • Aran Wilkinson's profile picture

    @aran384

    This looks awesome, is this coming to ghostty eventually?

    1 like

  • Galen Green's profile picture

    @Galen__Green

    Keen to try this out, I have a few ideas.

    1 like

  • SilentSuite's profile picture

    @silentsuiteio

    Leaking CoreAnimation complexity into SwiftUI caller code would've made the API simpler to implement and harder to use correctly. Eating that translation layer internally is the kind of decision that looks like extra work until everyone downstream never has to think about it.

    1 like

  • hira's profile picture

    @Hiraweb3

    Smooth as silk. Can’t wait to play with this.

    1 like

  • anton 🇺🇦🇺🇦🇺🇦's profile picture

    @podviaznikov

    I would love to use it! waiting for your release. exciting

    1 like

  • Adam Hill's profile picture

    @adam_hill

    Cool enough single window… but moving tiles multi-window! 🤯 Only combination I didn’t see was if it does tile *swapping* multi-window? (Like with tiles 2 & 7 in the demo).

    1 like

  • Austin's profile picture

    @theaustincraig

    This will do numbers on my ghostty setup

    1 like

  • Cornelius Mark's profile picture

    @corneliusmark

    This approach of eating the translation layer internally matches what helped me keep a complex settings screen responsive. Have you measured frame times with Instruments on the drag interactions?

  • Rómulo Lazarde Delgado's profile picture

    @LazardeRomulo

    looks and feels fantastic 😎

  • kaumnen's profile picture

    @kaumnen

    that looks awesome

  • authenticallyYi's profile picture

    @AuthenticallyYi

    I don't even know what to build yet with this but I already want to

  • moreward (moreboxed.com)'s profile picture

    @morew4rd

    Delightfully smooth <3 Looking forward to playing with this for my app.