---
title: "Disabled Toolbar Vertical Behavior | Explore SwiftUI"
description: "Disables the vertical bar. Learn how to use Disabled Toolbar Vertical Behavior in SwiftUI with visual code examples for iOS, macOS, watchOS, tvOS, and visionOS."
canonical_url: "https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior"
meta:
  author: "Explore SwiftUI"
  "og:description": "Disables the vertical bar. Learn how to use Disabled Toolbar Vertical Behavior in SwiftUI with visual code examples for iOS, macOS, watchOS, tvOS, and visionOS."
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Disabled%2BToolbar%2BVertical%2BBehavior%2Cdescription_Disables%2Bthe%2Bvertical%2Bbar.%2Ccategory_View%2Cimage_~L2FwaS9pbWFnZXMvMjQ2L3ZhcmlhbnRzLzE2MzY~dj0xNzkwMjc3MTA3NTE4JnI9MiZ3PTY0MCZoPTQ4MCZmPXBuZw%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~Ym9yZGVyLXJhZGl1czogMzNweCAwcHggMHB4IDMzcHg7IGJvcmRlcjogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci1yaWdodDogMDsgYm94LXNoYWRvdzogMCAtMTBweCA1MHB4IHJnYmEoMzcsOTksMjM1LDAuMTgpOw%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIl19%2Cp_Ii9saWJyYXJ5L3ZpZXcvZGlzYWJsZWQtdG9vbGJhci12ZXJ0aWNhbC1iZWhhdmlvciI%2Cs_k6Oc5kuAEY7xsnF4.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Disabled Toolbar Vertical Behavior | Explore SwiftUI"
  "twitter:description": "Disables the vertical bar. Learn how to use Disabled Toolbar Vertical Behavior in SwiftUI with visual code examples for iOS, macOS, watchOS, tvOS, and visionOS."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Disabled%2BToolbar%2BVertical%2BBehavior%2Cdescription_Disables%2Bthe%2Bvertical%2Bbar.%2Ccategory_View%2Cimage_~L2FwaS9pbWFnZXMvMjQ2L3ZhcmlhbnRzLzE2MzY~dj0xNzkwMjc3MTA3NTE4JnI9MiZ3PTY0MCZoPTQ4MCZmPXBuZw%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~Ym9yZGVyLXJhZGl1czogMzNweCAwcHggMHB4IDMzcHg7IGJvcmRlcjogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci1yaWdodDogMDsgYm94LXNoYWRvdzogMCAtMTBweCA1MHB4IHJnYmEoMzcsOTksMjM1LDAuMTgpOw%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIl19%2Cp_Ii9saWJyYXJ5L3ZpZXcvZGlzYWJsZWQtdG9vbGJhci12ZXJ0aWNhbC1iZWhhdmlvciI%2Cs_k6Oc5kuAEY7xsnF4.png"
  "twitter:title": "Disabled Toolbar Vertical Behavior | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

**Interactive previews**[ iPhone Duo](https://exploreswiftui.com/duo?element=246)

# **Disabled Toolbar Vertical Behavior**

Disables the vertical bar.

![Disabled Toolbar Vertical Behavior - Preview Not Available](https://exploreswiftui.com/api/images/246/variants/1636?v=1790277107518&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 27.1+ iPadOS 27.1+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/swiftui/toolbarverticalbehavior/disabled)

```
TabView {
    Tab("1", systemImage: "1.circle") {
        NavigationStack {
            Text("0")
                .toolbar {
                    Button(role: .confirm, action: action)
                }
        }
    }

    Tab("2", systemImage: "2.circle") {
       Text("2")
    }
}
.toolbarVerticalBehavior(.disabled)
```

### **Found an issue or have a suggestion?**

Created: September 24, 2026Updated: September 24, 2026

![Connect Wizard](https://exploreswiftui.com/_ipx/f_webp&q_80&s_48x48/images/connect-wizard-icon.png)

**Connect Wizard**

**Unlock insights App Store Connect doesn’t show you.**

[** Get Started **](https://apps.apple.com/app/apple-store/id6747314580?pt=121213751&ct=Explore%20SwiftUI%20Banner&mt=8)

### **More View Components **

[**View all **](https://exploreswiftui.com/library/view)

![VisionOS background materials - visionOS - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/260/variants/2143?v=1793707679045&r=2&w=412&q=75&f=webp)

### **VisionOS background materials**

All background materials on visionOS

![Container Content Margins - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/257/variants/1987?v=1792070676534&r=2&w=412&q=75&f=webp)

### **Container Content Margins**

Adds the margins of the container the view is in.

![Toolbar Vertical Edge - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/254/variants/1863?v=1790589836833&r=2&w=412&q=75&f=webp)

### **Toolbar Vertical Edge**

This value reflects the system’s preferred edge for the vertical bar in the current context, regardless of whether a vertical bar is currently visible. Use it to position custom bars or other UI relative to the system’s bar placement.

![Hinge State - iOS on iPhone Duo - Landscape - Fully Open - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/249/variants/1765?v=1793099575627&r=2&w=412&q=75&f=webp)

### **Hinge State**

A type encapsulating the state of a single hinge.

![Music Picker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/232/variants/727?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Music Picker**

Presents a music picker to select items from the Apple Music catalog and the user’s music library.

![App Store Overlay - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/224/variants/269?v=1790073478842&r=2&w=412&q=75&f=webp)

### **App Store Overlay**

Presents a StoreKit overlay when a given condition is true.

![Manage Subscriptions Sheet - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/223/variants/241?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Manage Subscriptions Sheet**

Opens the manage subscriptions sheet.

![Swipe Container - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/201/variants/496?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Swipe Container**

Only allows a single active swipe within a container.

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Prioritize Sheet Content Scrolling - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/141/variants/466?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Prioritize Sheet Content Scrolling**

Configures the behavior of swipe gestures on a presentation. PresentationContentInteraction.scrolls prioritizes scrolling the content over resizing the sheet.

![PalettePickerStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/184/variants/598?v=1790073478842&r=2&w=412&q=75&f=webp)

### **PalettePickerStyle**

A picker style that presents the options as a row of compact elements. When used outside of menus, this style is rendered as a segmented picker. If that is the intended usage, consider segmented instead.

![Multiple Sources Toggle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/209/variants/633?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Multiple Sources Toggle**

Creates a toggle that updates the selected property for all sources. Once toggled, all sources will have the same value.

![Context Menu - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/22/variants/147?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Context Menu**

Adds a context menu to a view.

![AccessoryLinearGaugeStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/44/variants/253?v=1790073478842&r=2&w=412&q=75&f=webp)

### **AccessoryLinearGaugeStyle**

A gauge style that displays bar with a marker that appears at a point along the bar to indicate the gauge’s current value

![GroupBox - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/27/variants/199?v=1790073478842&r=2&w=412&q=75&f=webp)

### **GroupBox**

A simple GroupBox

![Delete Disabled - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/127/variants/351?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Delete Disabled**

Adds a condition for whether the view’s view hierarchy is deletable.

![Default Tab Bar Placement - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/239/variants/2069?v=1792681374978&r=2&w=412&q=75&f=webp)

### **Default Tab Bar Placement**

Specifies the preferred placement for the tabs of a TabView in the sidebarAdaptable style on platforms where the tab bar cannot adapt between different representations, and only one representation can be shown. For example, on iOS, it can enforce the sidebar on large-screen devices like the Pro Max, and iPhone Duo. This modifier has no effect on iPadOS.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior#webpage","@type":"WebPage","dateModified":"2026-09-24T19:11:47.612Z","datePublished":"2026-09-24T19:09:52.129Z","description":"Disables the vertical bar. Learn how to use Disabled Toolbar Vertical Behavior in SwiftUI with visual code examples for iOS, macOS, watchOS, tvOS, and visionOS.","name":"Disabled Toolbar Vertical Behavior","url":"https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior","breadcrumb":{"@id":"https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior#article","dateModified":"2026-09-24T19:11:47.612Z","datePublished":"2026-09-24T19:09:52.129Z","description":"Disables the vertical bar. Learn how to use Disabled Toolbar Vertical Behavior in SwiftUI with visual code examples for iOS, macOS, watchOS, tvOS, and visionOS.","headline":"Disabled Toolbar Vertical Behavior","inLanguage":"en-US","name":"Disabled Toolbar Vertical Behavior","thumbnailUrl":"https://exploreswiftui.com/api/images/246/variants/1636?v=1790277107518&r=2","url":"https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@type":"WebSite","name":"Explore SwiftUI","url":"https://exploreswiftui.com"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior#/schema/software-source-code/1","@type":"SoftwareSourceCode","codeRepository":"https://developer.apple.com/documentation/swiftui/toolbarverticalbehavior/disabled","codeSampleType":"full example","description":"Disables the vertical bar. Learn how to use Disabled Toolbar Vertical Behavior in SwiftUI with visual code examples for iOS, macOS, watchOS, tvOS, and visionOS.","name":"Disabled Toolbar Vertical Behavior SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"TabView {\n    Tab(\"1\", systemImage: \"1.circle\") {\n        NavigationStack {\n            Text(\"0\")\n                .toolbar {\n                    Button(role: .confirm, action: action)\n                }\n        }\n    }\n\n    Tab(\"2\", systemImage: \"2.circle\") {\n       Text(\"2\")\n    }\n}\n.toolbarVerticalBehavior(.disabled)","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"View"},{"@type":"Thing","name":"Disabled Toolbar Vertical Behavior"}]},{"@id":"https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"View","item":"https://exploreswiftui.com/library/view","position":2},{"@type":"ListItem","name":"Disabled Toolbar Vertical Behavior","item":"https://exploreswiftui.com/library/view/disabled-toolbar-vertical-behavior","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/246/variants/1636?v=1790277107518&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/246/variants/1636?v=1790277107518&r=2"}]}
```