Layout

Vertical toolbars and tab bars

How navigation bars, toolbars, and tab bars rotate into a vertical bar on iPhone Duo with the iOS 27.1 SDK, and how to control item axisBehavior, overflow, and priority.

9 min readUpdated 3 sources

The most noticeable change when you link against the iOS 27.1 SDK is that your bars move to the side. On the outer display — and on the inner display in landscape — navigation bar items, toolbar items, and tab bar items merge into a single vertical bar along the side of the screen, right below the status bar. That frees up vertical space for content and places buttons within easy thumb reach. When the inner display rotates to portrait, bars return to the top and bottom.12

In right-to-left languages, the vertical bar stays on the same physical side of the hardware while your content mirrors as usual.1

Only container-managed bars become vertical

iOS only rotates bars managed by a system container:

  • SwiftUI: the .toolbar modifier inside a NavigationStack or NavigationSplitView, plus TabView.
  • UIKit: UINavigationController and UITabBarController (configure toolbarItems on view controllers inside the navigation stack).

Standalone UIToolbar, UINavigationBar, or UITabBar instances that you instantiate manually are not rotated, nor is a SwiftUI .toolbar outside a navigation container. If you built a custom tab bar from scratch (for example, to drive custom Lottie animations), it will remain horizontal at the bottom and may collide with the status bar.3 Either migrate to the system container’s bar, or position your custom bar manually using toolbarVerticalEdge / verticalBarEdge and reserved regions.

// SwiftUI: items inside a navigation container's toolbar rotate automatically
NavigationStack {
    ContentView()
        .toolbar {
            ToolbarItem(placement: .bottomBar) { /* ... */ }
        }
}

A few container-specific rules to keep in mind:

  • In a split view, only the detail column uses a vertical bar.
  • An expanded inspector column keeps horizontal bars.
  • On the inner display, centered sheets keep horizontal bars. A sheet anchored to the trailing edge gets a vertical bar; a leading-anchored sheet does not.
  • Keyboard accessory bars always remain horizontal.1

Item ordering: top to bottom

A vertical bar lays out its items from top to bottom:

  1. Primary navigation (back or close).
  2. Prominent actions (such as Done).
  3. Remaining items in their original groups, separated by a flexible spacer between top-bar and bottom-bar placements.1

UINavigationController and NavigationStack supply the back button automatically. For a custom close or cancel button, use .cancellationAction in SwiftUI, or a leading item group with leftItemsSupplementBackButton = false in UIKit. Pin prominent actions near the top with .topBarPinnedTrailing or pinnedTrailingGroup:

// SwiftUI
.toolbar {
    ToolbarItem(placement: .topBarPinnedTrailing) { /* Done */ }
}

// UIKit
navigationItem.pinnedTrailingGroup = UIBarButtonItemGroup(/* ... */)

Give every item both a symbol and a title

Because the vertical bar has a narrow, fixed width, it favors icon-only buttons. The system decides where each item lives:

  • Items with an image (like Back or Share) move into the vertical bar.
  • Text-only items (like Edit) stay in a horizontal bar.
  • Overflow menus display both the title and the icon.

Always provide both a title and a symbol. Using Label in SwiftUI, or setting both title and image on UIBarButtonItem, covers both orientations and the overflow menu. The same rule applies to tabs: a title-only tab item cannot appear in the vertical bar.1

If an item displays text alongside an icon, consider whether the text is just a count or status indicator that works better as a badge:

// SwiftUI
InboxButton().badge(7)

// UIKit
item.badge = .count(7)

Dynamic text that carries essential meaning on its own — like a live shopping-cart total — should remain in a horizontal bar.1

Control the axis of custom views

Custom bar views stay horizontal by default. Use axisBehavior to tell the system how a custom item should behave:

Behavior When to use
Default Let the system choose based on the item’s content
.verticalPreferred Compact custom views that fit a vertical slot, such as an avatar or compass
.horizontalOnly Controls that toggle between an icon and a text label, such as Select / Done
// SwiftUI
ToolbarItem { ProfileView() }
    .axisBehavior(.verticalPreferred)

// UIKit
let item = UIBarButtonItem(customView: ProfileView())
item.axisBehavior = .verticalPreferred

When a custom view opts into the vertical bar, it must fit within the bar’s fixed width or switch to a vertical arrangement. Check @Environment(\.toolbarVerticalEdge) in SwiftUI or traitCollection.verticalBarEdge in UIKit to see which edge the vertical bar is on (or empty when horizontal). Apple’s engineers recommend this property as the most reliable signal for vertical-bar layout — much more reliable than checking size classes or device orientation.3

Note that vertical bars have no scroll-edge blur material and only show a solid background platter when Reduce Transparency is enabled, so make sure custom controls remain legible over scrolling content. Flexible spacers collapse to zero along the vertical axis, so avoid adding manual spacer padding.1

Plan for overflow

Vertical space is tightest on the outer display in landscape, or whenever the software keyboard or Picture in Picture is onscreen. By default, toolbar items compress into the overflow menu first so top-level tab bar destinations stay visible.1 On task-heavy screens where action buttons matter more than tabs, reverse that priority:

// SwiftUI
.toolbarVerticalCompressionBehavior(.prefersToolbarItems)

// UIKit
navigationItem.verticalBarCompressionBehavior = .prefersBarItems

Items collapse into the overflow menu from the bottom up. Mark high-priority actions — like Compose or badged items — so they stay visible longest:

// SwiftUI
ToolbarItem { /* ... */ }.visibilityPriority(.high)

// UIKit
item.visibilityPriority = .high

If your app already has its own “More” menu, merge those secondary actions into the system overflow menu using ToolbarOverflowMenu (SwiftUI) or additionalOverflowItems (UIKit). Avoid using the ellipsis icon for custom buttons, as the system reserves it for overflow.1

When to opt out of vertical bars

Most screens benefit from the extra vertical height. However, Apple recommends keeping horizontal bars for single-page, button-grid interfaces (like a calculator) and simple modal sheets with a single action button:

// SwiftUI
NavigationStack { ContentView().toolbarVerticalBehavior(.disabled) }

// UIKit
override var preferredVerticalBarBehavior: UIVerticalBarBehavior { .disabled }

Quick checklist

  1. Link against the iOS 27.1 SDK.
  2. Host all toolbars and tab bars inside standard navigation or tab containers.
  3. Provide both a symbol and a title for every item, and configure axisBehavior on custom views.
  4. Set overflow compression and visibilityPriority on action-dense screens.

Sources

  1. Tech Talk: Raise the bar with iPhone Duo
  2. Apple Developer: Prepare your app for iPhone Duo
  3. Apple Developer Forums: A summary of the iPhone Duo Group Lab