<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/configuring-swiftui-toolbars-on-iphone-duo-avafuz8at" -->

---
title: Configuring SwiftUI toolbars on iPhone Duo | daily.dev
description: iOS 27.1 introduces new SwiftUI APIs for controlling how toolbar items and tabs render on iPhone Duo's shared vertical bar. The axisBehavior modifier lets...
canonical: https://daily.dev/posts/configuring-swiftui-toolbars-on-iphone-duo-avafuz8at
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Configuring SwiftUI toolbars on iPhone Duo | daily.dev
og:description: iOS 27.1 introduces new SwiftUI APIs for controlling how toolbar items and tabs render on iPhone Duo's shared vertical bar. The axisBehavior modifier lets...
og:url: https://daily.dev/posts/configuring-swiftui-toolbars-on-iphone-duo-avafuz8at
og:image: https://api.daily.dev/og/posts/AvAfUz8at.png
og:image:alt: Configuring SwiftUI toolbars on iPhone Duo
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring SwiftUI toolbars on iPhone Duo

**[Nil Coalescing](https://daily.dev/sources/nilcoalescing)** · 6 min read · 0 upvotes · 0 comments

## Summary

iOS 27.1 introduces new SwiftUI APIs for controlling how toolbar items and tabs render on iPhone Duo's shared vertical bar. The axisBehavior modifier lets developers force items into vertical or horizontal placement, the toolbarVerticalEdge environment value lets custom content adapt its layout, toolbarVerticalCompressionBehavior sets priority between tabs and toolbar actions when space runs out, and toolbarVerticalBehavior(.disabled) opts an interface out of vertical bars entirely, reverting to standard horizontal bars.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nilcoalescing.com/blog/ConfiguringSwiftUIToolbarsOnIPhoneDuo>

## Questions this post answers

### How do I force a custom SwiftUI toolbar item to appear in the vertical bar on iPhone Duo?

Apply the axisBehavior(.verticalPreferred) modifier to the ToolbarItem in iOS 27.1. By default, SwiftUI only moves standard symbol-based controls into the vertical bar automatically, while text-only or complex custom content stays horizontal; verticalPreferred overrides that default so a small custom label joins the other controls along the vertical edge.

_daily.dev keeps SwiftUI developers current on new toolbar APIs like this one as iOS evolves._

### How do I prevent SwiftUI toolbar items or tabs from collapsing on iPhone Duo when space runs out?

Use the toolbarVerticalCompressionBehavior(_:) modifier introduced in iOS 27.1, set to either prefersTabBar or prefersToolbarItems. The default automatic behavior favors the tab bar, moving toolbar items into overflow first; prefersToolbarItems reverses that priority so toolbar actions stay visible and the tabs collapse into a single switcher control instead.

_Developers tuning adaptive toolbar priority can track SwiftUI API changes like this via daily.dev._

### How do I disable the vertical toolbar bar on iPhone Duo for a specific SwiftUI view or sheet?

Apply the toolbarVerticalBehavior(.disabled) modifier, new in iOS 27.1, to a view inside the window, sheet, or presentation you want affected. This reverts bar content to standard horizontal top and bottom bars and restores the horizontal status bar arrangement; applying it inside a sheet controls that sheet's bars independently of the presenting view.

_daily.dev helps SwiftUI developers stay on top of layout-affecting API additions like this._

## Similar posts on daily.dev

- [Presenting SwiftUI sheets on iPhone Duo](https://daily.dev/posts/presenting-swiftui-sheets-on-iphone-duo-py7zqu9ke) · Nil Coalescing · 0 upvotes · 0 comments
- [Toolbar overflow and visibility priority on iPhone Duo](https://daily.dev/posts/toolbar-overflow-and-visibility-priority-on-iphone-duo-xykkz59tb) · Sarunw · 2 upvotes · 0 comments
- [Taking Control of Toolbar Items in SwiftUI](https://daily.dev/posts/taking-control-of-toolbar-items-in-swiftui-0e6yeuoon) · Swift with Majid · 0 upvotes · 0 comments

---

Tags: [#ios](https://daily.dev/tags/ios), [#swift](https://daily.dev/tags/swift), [#swiftui](https://daily.dev/tags/swiftui)

[View this post on daily.dev](https://daily.dev/posts/configuring-swiftui-toolbars-on-iphone-duo-avafuz8at)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Configuring SwiftUI toolbars on iPhone Duo","url":"https://daily.dev/posts/configuring-swiftui-toolbars-on-iphone-duo-avafuz8at","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/configuring-swiftui-toolbars-on-iphone-duo-avafuz8at"},"datePublished":"2026-09-21T09:50:55.821Z","dateModified":"2026-09-21T19:28:15.191Z","description":"iOS 27.1 introduces new SwiftUI APIs for controlling how toolbar items and tabs render on iPhone Duo's shared vertical bar. The axisBehavior modifier lets...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c0b4b81ec2ffc1a7ed8101a94f4189ec?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c0b4b81ec2ffc1a7ed8101a94f4189ec?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Nil Coalescing","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Nil Coalescing","logo":"https://media.daily.dev/image/upload/s--rcEu6sag--/f_auto,q_auto/v1785654899/logos/nilcoalescing?_a=BAMAMicg0","url":"https://daily.dev/sources/nilcoalescing"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/configuring-swiftui-toolbars-on-iphone-duo-avafuz8at","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ios,swift,swiftui","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Nil Coalescing","item":"https://daily.dev/sources/nilcoalescing"},{"@type":"ListItem","position":3,"name":"Configuring SwiftUI toolbars on iPhone Duo"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/configuring-swiftui-toolbars-on-iphone-duo-avafuz8at#faq","mainEntity":[{"@type":"Question","name":"How do I force a custom SwiftUI toolbar item to appear in the vertical bar on iPhone Duo?","acceptedAnswer":{"@type":"Answer","text":"Apply the axisBehavior(.verticalPreferred) modifier to the ToolbarItem in iOS 27.1. By default, SwiftUI only moves standard symbol-based controls into the vertical bar automatically, while text-only or complex custom content stays horizontal; verticalPreferred overrides that default so a small custom label joins the other controls along the vertical edge. daily.dev keeps SwiftUI developers current on new toolbar APIs like this one as iOS evolves."}},{"@type":"Question","name":"How do I prevent SwiftUI toolbar items or tabs from collapsing on iPhone Duo when space runs out?","acceptedAnswer":{"@type":"Answer","text":"Use the toolbarVerticalCompressionBehavior(_:) modifier introduced in iOS 27.1, set to either prefersTabBar or prefersToolbarItems. The default automatic behavior favors the tab bar, moving toolbar items into overflow first; prefersToolbarItems reverses that priority so toolbar actions stay visible and the tabs collapse into a single switcher control instead. Developers tuning adaptive toolbar priority can track SwiftUI API changes like this via daily.dev."}},{"@type":"Question","name":"How do I disable the vertical toolbar bar on iPhone Duo for a specific SwiftUI view or sheet?","acceptedAnswer":{"@type":"Answer","text":"Apply the toolbarVerticalBehavior(.disabled) modifier, new in iOS 27.1, to a view inside the window, sheet, or presentation you want affected. This reverts bar content to standard horizontal top and bottom bars and restores the horizontal status bar arrangement; applying it inside a sheet controls that sheet's bars independently of the presenting view. daily.dev helps SwiftUI developers stay on top of layout-affecting API additions like this."}}]}
```

