---
title: "Liquid Glass tab bar and navigation bar: design and code"
description: "How the Liquid Glass tab bar and navigation bar work in iOS 26 and 27: floating tabs, search, bottom accessory, scroll minimize, SwiftUI code, 9 designs."
url: https://liquidglassdesign.com/blog/liquid-glass-tab-bar
language: en
published: 2026-11-27
updated: 2026-11-27
author: "Liquid Glass Design"
tags: ["Apple platforms","Code","Components","Roundups"]
translations:
  zh-Hans: https://liquidglassdesign.com/zh/blog/liquid-glass-tab-bar.md
  zh-Hant: https://liquidglassdesign.com/zh-TW/blog/liquid-glass-tab-bar.md
  ja: https://liquidglassdesign.com/ja/blog/liquid-glass-tab-bar.md
  hi: https://liquidglassdesign.com/hi/blog/liquid-glass-tab-bar.md
---

# Liquid Glass tab bar and navigation bar: design and code

> How the Liquid Glass tab bar and navigation bar work in iOS 26 and 27: floating tabs, search, bottom accessory, scroll minimize, SwiftUI code, 9 designs.

Since iOS 26, the iPhone tab bar floats above the content. Its tabs sit on a layer of Liquid Glass, and whatever scrolls underneath shows through. The navigation bar at the top changed too: buttons like Back and Share are grouped by purpose, and each group shares one piece of glass.

The last section answers a question many people search for: can you turn it off? The 9 designs in the post come from our gallery. Each links to its gallery page, which credits the designer and links to the original post.

## How the tab bar is built

Apple's Human Interface Guidelines (HIG) describe the iOS tab bar in a few lines: it floats above content at the bottom of the screen, and its items rest on a Liquid Glass background that lets the content beneath peek through. On top of that, iOS 26 lets a tab bar have a separate search tab, carry a bottom accessory, and minimize when the user scrolls.

### A separate search tab

A tab bar can put a dedicated search tab at its trailing end. In code it is a tab with the `search` role. iOS 26 places it on its own piece of glass, apart from the other tabs.

[Minimal navigation, maximum clarity](https://liquidglassdesign.com/gallery/minimal-navigation-maximum-clarity) by freely has exactly this layout. Home, location, bag and settings icons share one capsule, and search sits alone in a circle on the right. The background is a warm amber blur, the selected home icon uses an orange from the same range, and the rim light on both shapes still reads against the light background.

![A glass capsule holding home, location, bag and settings icons, with a separate round search button, over a warm amber blur](https://cdn.liquidglassdesign.com/gallery/c41823cf-d07a-4b20-b801-1ba59763660c.jpg)

*Minimal navigation, maximum clarity. by freely.* [See it in the gallery](https://liquidglassdesign.com/gallery/minimal-navigation-maximum-clarity)

iOS 27 added `TabRole.prominent` to SwiftUI. It gives one tab a prominent treatment, and only one tab in the bar can have it. Apple's documentation adds that when no tab sets `prominent` explicitly, a search tab may get the prominent treatment by default.

### The bottom accessory and minimize on scroll

A bottom accessory sits above the tab bar. The HIG's example is the MiniPlayer in Music. You can have the tab bar shrink when the user scrolls down, with the accessory moving inline next to it. Tapping a tab or scrolling back to the top restores the full bar.

[Apple Liquid Glass Design Navigation Bar](https://liquidglassdesign.com/gallery/apple-liquid-glass-design-navigation-bar) by Nikolashvili Nodo comes close to this layout. A tab bar with text labels (Home, Feed, Search, Settings) has a separate "Capture" capsule with a camera icon above it, and both sit inside one larger piece of glass. The background is pink and purple blobs, and the white labels stay readable even over the brightest magenta. Search is an ordinary tab here, which iOS also allows, since the search tab is optional.

![Glass tab bar labelled Home, Feed, Search, Settings with a Capture capsule above, over pink and purple blobs](https://cdn.liquidglassdesign.com/gallery/eff6fdc3-ef50-4aff-9e45-d55d8fd9fdc7.png)

*Apple Liquid Glass Design Navigation Bar by Nikolashvili Nodo.* [See it in the gallery](https://liquidglassdesign.com/gallery/apple-liquid-glass-design-navigation-bar)

### The selected state

iOS draws the selection in the system tab bar, and developers mostly control its color. Mockups have much more room. Rishi Raghu made [Liquid Glass UI · Tab Navigation](https://liquidglassdesign.com/gallery/liquid-glass-ui-tab-navigation) in Figma: a black capsule tab bar where the selected "Analytics" tab sits under a clear lens taller than the bar, which magnifies its icon and label like a loupe. The effect suits concept work and web navigation. To get it in a native app you would have to draw your own tab bar, and you would lose the system behaviors like minimize on scroll and the bottom accessory.

![Black capsule tab bar; the selected Analytics tab is magnified by a raised clear glass lens between home and people icons](https://cdn.liquidglassdesign.com/gallery/4993c6d8-d46a-4f31-89c7-c47a98696d37.png)

*Liquid Glass UI · Tab Navigation by Rishi Raghu.* [See it in the gallery](https://liquidglassdesign.com/gallery/liquid-glass-ui-tab-navigation)

### iPad and visionOS

In iPadOS the tab bar sits near the top of the screen. It can be a fixed bar, or it can carry a button that lets people turn it into a sidebar. In visionOS the tab bar is always vertical and fixed to the leading side of the window, and it expands to show its labels when someone looks at it.

## The navigation bar and toolbars

The HIG files the navigation bar under toolbars: in iOS, a toolbar that handles navigation is sometimes called a navigation bar. It holds three kinds of things: the title of the current view, navigation controls such as Back, and actions that apply to the content on screen.

In the iOS navigation bar, buttons in the same group share one glass background. SwiftUI's `ToolbarSpacer`, new in iOS 26, puts a break between items, either at a fixed width or as a flexible space. When one item should not share the glass with its neighbors, `sharedBackgroundVisibility(.hidden)` in SwiftUI puts it in its own group. The UIKit equivalent is `hidesSharedBackground` on `UIBarButtonItem`.

[tab icon bar design](https://liquidglassdesign.com/gallery/tab-icon-bar-design) by Onyekachi Mbaike shows the grouping clearly. At the bottom of a light grey rounded panel, folder and trash form one group on the left and reply and send form another on the right, each on its own piece of glass, with blue icons. Sorting a message and answering it end up in separate places, so the two sets are easy to tell apart.

![Two glass button groups on a light grey panel: folder and trash on the left, reply and send on the right, in blue](https://cdn.liquidglassdesign.com/gallery/0ff88aa6-c0dc-4a6e-a2f1-1a325c35d0dd.jpg)

*tab icon bar design by Onyekachi Mbaike.* [See it in the gallery](https://liquidglassdesign.com/gallery/tab-icon-bar-design)

A few specific toolbar rules from the HIG:

- Give the main action (such as Done or Submit) the prominent style. Use only one, and put it at the trailing end.
- Use the standard Back and Close symbols instead of buttons labelled "Back" or "Close".
- Keep the title under about 15 characters so the buttons have room.
- Make the corner radius of custom components concentric with the bar's corners. Standard buttons and text fields are concentric by default.

A toolbar can also hold a segmented control. [Liquid Glass Camera Toolbar](https://liquidglassdesign.com/gallery/liquid-glass-camera-toolbar) by MAni Ghafouri is a camera toolbar with a capsule in the middle for switching shooting modes, where the selected "CINEMATIC" sits in its own smaller capsule in yellow-green text. A round photo thumbnail is on the left and a round flip-camera button on the right. The background is pale abstract 3D slats, and thin highlight lines trace the edges of all three pieces of glass.

![Camera toolbar over pale 3D slats: round photo thumbnail, mode capsule with CINEMATIC selected, flip-camera button](https://cdn.liquidglassdesign.com/gallery/296cd13d-8a84-8065-9b1d-f50b8d9fb531.jpg)

*Liquid Glass Camera Toolbar by MAni Ghafouri.* [See it in the gallery](https://liquidglassdesign.com/gallery/liquid-glass-camera-toolbar)

When content scrolls under the navigation bar, the scroll edge effect keeps the title and buttons legible. In SwiftUI that is `scrollEdgeEffectStyle(_:for:)`. iOS 27 changed how the top toolbar looks during scrolling; the details are in [iOS 27 Liquid Glass changes](https://liquidglassdesign.com/blog/ios-27-liquid-glass-changes).

## Design rules

These come from the Tab bars and Toolbars pages of the HIG. The Tab bars page added Liquid Glass guidance in July 2025, updated it in December 2025, and was last changed on 8 June 2026.

1. Use the tab bar to move between sections of the app, not for actions. Actions on the current view belong in a toolbar.
2. Keep the tab bar visible when people go deeper into a section, or they lose track of where they are. A modal view covering it is the exception.
3. Keep the number of tabs small. When horizontal space runs out, the trailing tab becomes a More tab, and content hidden there is hard to find, so avoid layouts where that happens. If you let people customize the tabs on iPad, the HIG suggests a default of five or fewer.
4. Don't disable or hide a tab when its section is empty. Explain inside why there is nothing there.
5. Use single words for tab labels where you can. Prefer filled SF Symbols for icons.
6. When the content itself is colorful, keep the tab bar monochrome, or pick an accent color that stands apart from the content.
7. Go easy on custom backgrounds and tints for bars. They can cover or interfere with the glass the system provides.

[Liquid Glass Mobile app Navbar](https://liquidglassdesign.com/gallery/liquid-glass-mobile-app-navbar) by Mahdi Sourabh is a good case to check against rules 3 and 6. It is a message inbox with five tabs on a glass bar at the bottom: Dashboard, Inbox, Scan, Customer and More, with the selected Inbox in a filled blue icon. On a white list the glass bar is nearly white too, and its outline comes mostly from a faint shadow, so the blue of the selected tab does a lot of work. The last tab is literally called More. If it holds sections that didn't fit, that is the case the HIG asks you to avoid; if it is a fixed entry point for extra settings, it matters much less.

![White message list with a pale glass bar: Dashboard, Inbox, Scan, Customer, More, with Inbox selected in blue](https://cdn.liquidglassdesign.com/gallery/545590e9-61cb-48b2-9a28-66b12941f222.webp)

*Liquid Glass Mobile app Navbar by Mahdi Sourabh.* [See it in the gallery](https://liquidglassdesign.com/gallery/liquid-glass-mobile-app-navbar)

## SwiftUI and UIKit code

This SwiftUI code does three things: it adds a separate search tab, makes the tab bar minimize when the user scrolls down, and attaches a mini player as a bottom accessory. It type-checks against the iOS SDK in Xcode 27.2 and needs iOS 26 or later.

```swift
import SwiftUI

struct RootView: View {
    @State private var query = ""

    var body: some View {
        TabView {
            Tab("Home", systemImage: "house.fill") {
                NavigationStack { Text("Feed") }
            }
            Tab("Library", systemImage: "square.stack.fill") {
                NavigationStack { Text("Library") }
            }
            Tab(role: .search) {
                NavigationStack { Text("Results for \(query)") }
            }
        }
        .searchable(text: $query)
        .tabBarMinimizeBehavior(.onScrollDown)
        .tabViewBottomAccessory {
            MiniPlayer()
        }
    }
}

struct MiniPlayer: View {
    @Environment(\.tabViewBottomAccessoryPlacement) private var placement

    var body: some View {
        HStack {
            Image(systemName: "music.note")
            if placement == .expanded {
                Text("Now Playing")
            }
            Spacer()
            Button("Play", systemImage: "play.fill") {}
                .labelStyle(.iconOnly)
        }
        .padding(.horizontal)
    }
}
```

`tabBarMinimizeBehavior` takes four values: `.automatic`, `.never`, `.onScrollDown` and `.onScrollUp`. When the accessory is shown above the tab bar, `tabViewBottomAccessoryPlacement` is `.expanded`; when the bar has minimized and the accessory sits inline with it, it is `.inline`. The mini player above drops its title in the `.inline` placement and keeps only the icon and the play button, because the row is narrow once it joins the tab bar. To show and hide the accessory dynamically, use `tabViewBottomAccessory(isEnabled:content:)`, which needs iOS 26.1.

Group navigation bar buttons with `ToolbarSpacer`:

```swift
Text("Detail")
    .toolbar {
        ToolbarItem(placement: .topBarTrailing) {
            Button("Share", systemImage: "square.and.arrow.up") {}
        }
        ToolbarSpacer(.fixed, placement: .topBarTrailing)
        ToolbarItem(placement: .topBarTrailing) {
            Button("Favorite", systemImage: "heart") {}
        }
    }
```

For the iOS 27 prominent tab, give one tab the `.prominent` role. If your deployment target is below iOS 27 and you don't check availability, the compiler stops with an error:

```swift
Tab("Radio", systemImage: "dot.radiowaves.left.and.right", role: .prominent) {
    Text("Radio")
}
```

The UIKit counterparts:

- Minimize on scroll: the `tabBarMinimizeBehavior` property of `UITabBarController`.
- Bottom accessory: `bottomAccessory` on `UITabBarController`, of type `UITabAccessory`; use `setBottomAccessory(_:animated:)` to animate the change.
- A button that shouldn't share the glass: `UIBarButtonItem.hidesSharedBackground`.

For the glass effect itself (`glassEffect`, containers and morphing), see the [SwiftUI Liquid Glass guide](https://liquidglassdesign.com/blog/swiftui-liquid-glass).

## Can you turn it off and go back to the old look?

Developers control part of this, and users control the rest.

To stop the tab bar from minimizing on scroll, set `tabBarMinimizeBehavior` to `.never`. The glass is the look of a system control, and an app has no lasting switch that removes it.

iOS 26 has a transitional Info.plist key, `UIDesignRequiresCompatibility`. Set to YES, it makes the system run the app in a compatibility mode, so the interface looks as it did when built with earlier SDKs. Apple's documentation describes it as temporary, and the system ignores the key when you build with the iOS 27 SDK (that is, Xcode 27).

What users can adjust is transparency. In iOS 27, a slider at Settings > Appearance > Liquid Glass makes buttons and search bars more opaque the further right it goes, and Reduce Transparency in Accessibility settings turns the backgrounds solid. Both apply to every app; the effects are covered in [Liquid Glass accessibility](https://liquidglassdesign.com/blog/liquid-glass-accessibility).

## Web, Figma and cross-platform

### Web navigation bars

The web has no system controls, so a glass navigation bar is up to your CSS. [Liquid glass navigation](https://liquidglassdesign.com/gallery/liquid-glass-navigation) by Roman Vasylovskyi is a site header with the Tourera logo on the left, Services, Industries, News and Contact in the middle, and a light and dark toggle plus a white "Get Started" button on the right. Behind it is a photo of dunes, and the bar sits right where the dark dune meets the pale sky, with the dune's outline clearly warped behind the glass. It also shows a hard part of glass navigation on the web: one bar can sit half on dark and half on light, while its text can only be one color. This design keeps all the light nav text over the dark half and puts only the toggle and a white button with black text on the light half.

![Glass site header over dunes: Tourera logo, four links, theme toggle, white Get Started button; the dune warps behind it](https://cdn.liquidglassdesign.com/gallery/22acd13d-8a84-80ef-8228-f1b3eeb5f2e1.webp)

*Liquid glass navigation by Roman Vasylovskyi.* [See it in the gallery](https://liquidglassdesign.com/gallery/liquid-glass-navigation)

For the CSS and SVG, see [Liquid Glass code in CSS and SVG](https://liquidglassdesign.com/blog/liquid-glass-css-svg). For browser support and fallbacks, see [Liquid Glass on the web: support, performance, fallbacks](https://liquidglassdesign.com/blog/liquid-glass-web-performance-fallbacks).

### Sidebars

On iPad, the tab bar can turn into a sidebar. [Liquid Glass Effect Sidebar UI](https://liquidglassdesign.com/gallery/liquid-glass-effect-sidebar-ui) by Tanvir Ahammed Tamim is a glass sidebar floating over a photo of rice terraces, listing Dashboard, Search, Sales Analytics, Notification and Account Settings, with a brighter fill behind the selected Dashboard. The terrace lines bend inside the glass. The designer says the sidebar was inspired by Apple's new design language.

![Glass sidebar over rice terraces: Dashboard, Search, Sales Analytics, Notification, Account Settings; the lines bend](https://cdn.liquidglassdesign.com/gallery/215cd13d-8a84-80ae-8b06-ead55ed991d1.webp)

*💧 Liquid Glass Effect Sidebar UI by Tanvir Ahammed Tamim.* [See it in the gallery](https://liquidglassdesign.com/gallery/liquid-glass-effect-sidebar-ui)

### Figma

Rishi Raghu's magnifier tab bar above was made in Figma. For what Figma's Glass effect can adjust and where it differs from Apple's material, see [Liquid Glass in Figma](https://liquidglassdesign.com/blog/liquid-glass-figma-glass-effect).

### React Native, Expo and Flutter

Native tabs in Expo Router use the iOS system tab bar, so most of the behavior above carries over. From Expo SDK 58, import `NativeTabs` from `expo-router/native-tabs`; in SDK 54 to 57 the path is `expo-router/unstable-native-tabs`.

- Minimize on scroll: `<NativeTabs minimizeBehavior="onScrollDown">`.
- Separate search tab: give the tab `role="search"`.
- Bottom accessory: `NativeTabs.BottomAccessory` (SDK 55 and later), with `usePlacement` to tell the `'regular'` placement from `'inline'`.
- Prominent tab: add `prominent` to a `NativeTabs.Trigger`. It needs SDK 58 and Xcode 27, and only takes effect on iOS 27; the prominent tab stays visible when the tab bar minimizes.

All of the iOS 26 features require building with Xcode 26 or later. Flutter has no official Liquid Glass widgets yet; the third-party options are compared in [Flutter Liquid Glass packages](https://liquidglassdesign.com/blog/flutter-liquid-glass-packages).

## One more example

[Liquid Glass Tab Bar UI](https://liquidglassdesign.com/gallery/liquid-glass-tab-bar-ui) by Shamnad is a dark "Ask AI" capsule with a plus on the left, mic and waveform icons on the right, and a separate round close button beside it. It looks like a search tab after it has been tapped and its field has expanded, so it is a useful reference for drawing that state.

![Dark glass capsule reading Ask AI with plus, mic and waveform icons, plus a separate round close button](https://cdn.liquidglassdesign.com/gallery/b5a0971a-d573-43fa-83d5-8a2de7dc23ee.png)

*Liquid Glass Tab Bar UI by Shamnad.* [See it in the gallery](https://liquidglassdesign.com/gallery/liquid-glass-tab-bar-ui)

The gallery's [UI section](https://liquidglassdesign.com/ui) has more tab bars and navigation designs.

*Versions, settings and figures checked on 23 November 2026.*

## Sources

- https://developer.apple.com/design/human-interface-guidelines/tab-bars
- https://developer.apple.com/design/human-interface-guidelines/toolbars
- https://developer.apple.com/documentation/swiftui/view/tabbarminimizebehavior(_:)
- https://developer.apple.com/documentation/swiftui/tabbarminimizebehavior
- https://developer.apple.com/documentation/swiftui/view/tabviewbottomaccessory(content:)
- https://developer.apple.com/documentation/swiftui/view/tabviewbottomaccessory(isenabled:content:)
- https://developer.apple.com/documentation/swiftui/tabviewbottomaccessoryplacement
- https://developer.apple.com/documentation/swiftui/tabrole/search
- https://developer.apple.com/documentation/swiftui/tabrole/prominent
- https://developer.apple.com/documentation/swiftui/toolbarspacer
- https://developer.apple.com/documentation/swiftui/toolbarcontent/sharedbackgroundvisibility(_:)
- https://developer.apple.com/documentation/swiftui/view/scrolledgeeffectstyle(_:for:)
- https://developer.apple.com/documentation/uikit/uitabbarcontroller/bottomaccessory
- https://developer.apple.com/documentation/uikit/uitabaccessory
- https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground
- https://developer.apple.com/documentation/bundleresources/information-property-list/uidesignrequirescompatibility
- https://docs.expo.dev/router/advanced/native-tabs/
