Tabs
Inspiration
I saw the new mobile experience in the ChatGPT and Claude apps, and loved how both apps handled navigation. The most important part in the chat apps is the composer, and if either app used the SwiftUI tab bar with the composer above it, it would:
- take away focus from the composer
- make the bottom of the screen feel very clunky

So I thought that this design choice was great. However, I wish that ChatGPT had the same quick-action menus as Claude, and I wish that Claude had the same liquid glass navigation as ChatGPT. So I thought it would be fun to try to mix those implementations together.
Approach
First things first, I knew I wanted to use the exposed APIs from SwiftUI or UIKit instead of hand-rolling a custom liquid glass, because otherwise it would give it a cheap feel. SwiftUI does have a public glassEffect, but it doesn’t have the same stretchy, rainbow-edged refraction you see when sliding.
That type of material only exists in Apple’s controls, like the tab bar, segmented control and slider. So instead I started with SwiftUI’s native tab bar, but on iPhone it won’t let you remove its container, resize the tabs, or attach a long-press menu.
Then I was trying to think how we could get that same feel but with something different, and realized that the UISegmentedControl is perfect, since it has a flat state when a tab is selected, but when switching it turns into a liquid glass pill. I was able to pretty much get to our final state just from here, and attaching a menu was actually really simple.
Things were pretty much ready to ship at this point, but then I was experimenting with the ChatGPT app and realized the liquid glass pill moves upwards as the menu opens.
At first I wasn’t sure about the reason behind this design choice, until I realized that your thumb covers the entire tab icon when you long press it, so a menu pops up without you seeing which tab it belongs to. Raising the tab slightly keeps it visible above your finger, so you can see the tab and its menu together. It’s a small thing, but something the Claude app doesn’t have.

Raising the tab ended up being the part I spent the most time on. In the first version, I animated a fake liquid glass pill, but for a single frame there was a weird effect with the refraction, and I couldn’t unsee it. So I fixed it by raising the actual liquid glass pill instead, tricking the control into thinking your finger is still down so the pill stays lifted. That way there’s no fake material and no glitch when the pill transitions between states.
Gestures
I’m a person who likes to text by sliding their finger across the keyboard, so gestures really matter to me. I probably spent a total of 30 minutes playing with tab gestures on my phone to ensure everything felt right (it doesn’t sound like a lot, but just imagine sliding your fingers across your phone screen for 30 minutes). Here were the key decisions:
While sliding across the tabs, if your finger rests on a tab with a menu, the menu opens after a short pause. Moving away restarts the timer, so it never opens while you’re just sliding over the tab.
In one motion, without lifting your finger, slide up into the menu to highlight each option, and let go to choose it.
Pull past the boundaries of the menu and it stretches, which indicates that going further won’t do anything.
With the menu open, slide sideways along the bar and the menu closes, so you’re back to switching tabs without lifting your finger.
With the menu open, you can let go and put your finger back down anywhere on the raised tab or the spot it came from in the bar. From there you can slide up into the menu or across to another tab, as if you’d never lifted your finger.
Conclusion
This was a fun side quest, with many of the complications coming from raising the tab upwards when the menu is open, and from all the gestures. Feel free to take the code from GitHub and use it in your app, remove any features or gestures you feel are not needed, and let me know if you encounter any issues!