<!--
{
  "documentType" : "article",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View-Auxiliary-Views",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Auxiliary view modifiers"
}
-->

# Auxiliary view modifiers

Add and configure supporting views, like toolbars and context menus.

## Overview

Use these modifiers to manage supplemental views that present context-specific
controls and information. For example, you can add titles and buttons
to navigation bars, manage the status bar, create context menus, and add
badges to many different kinds of views.

## Topics

### Navigation titles

[Configure your apps navigation titles](/documentation/SwiftUI/Configure-Your-Apps-Navigation-Titles)

Use a navigation title to display the current navigation state of an
interface.

[`navigationTitle(_:)`](/documentation/SwiftUI/View/navigationTitle(_:))

Configures the view’s title for purposes of navigation,
using a localized string resource.

[`navigationSubtitle(_:)`](/documentation/SwiftUI/View/navigationSubtitle(_:))

Configures the view’s subtitle for purposes of navigation,
using a localized string resource.

### Navigation title configuration

[`navigationDocument(_:)`](/documentation/SwiftUI/View/navigationDocument(_:))

Configures the view’s document for purposes of navigation.

[`navigationDocument(_:preview:)`](/documentation/SwiftUI/View/navigationDocument(_:preview:))

Configures the view’s document for purposes of navigation.

### Navigation bars

[`navigationBarBackButtonHidden(_:)`](/documentation/SwiftUI/View/navigationBarBackButtonHidden(_:))

Hides the navigation bar back button for the view.

[`navigationBarTitleDisplayMode(_:)`](/documentation/SwiftUI/View/navigationBarTitleDisplayMode(_:))

Configures the title display mode for this view.

### Navigation stacks and columns

[`navigationDestination(for:destination:)`](/documentation/SwiftUI/View/navigationDestination(for:destination:))

Associates a destination view with a presented data type for use within
a navigation stack.

[`navigationDestination(isPresented:destination:)`](/documentation/SwiftUI/View/navigationDestination(isPresented:destination:))

Associates a destination view with a binding that can be used to push
the view onto a [`NavigationStack`](/documentation/SwiftUI/NavigationStack).

[`navigationDestination(item:destination:)`](/documentation/SwiftUI/View/navigationDestination(item:destination:))

Associates a destination view with a bound value for use within a
navigation stack or navigation split view

[`navigationSplitViewColumnWidth(_:)`](/documentation/SwiftUI/View/navigationSplitViewColumnWidth(_:))

Sets a fixed, preferred width for the column containing this view.

[`navigationSplitViewColumnWidth(min:ideal:max:)`](/documentation/SwiftUI/View/navigationSplitViewColumnWidth(min:ideal:max:))

Sets a flexible, preferred width for the column containing this view.

[`navigationLinkIndicatorVisibility(_:)`](/documentation/SwiftUI/View/navigationLinkIndicatorVisibility(_:))

Configures whether navigation links show a disclosure indicator.

[`navigationTransition(_:)`](/documentation/SwiftUI/View/navigationTransition(_:))

Sets the navigation transition style for this view.

### Scroll view edges

[`scrollEdgeEffectStyle(_:for:)`](/documentation/SwiftUI/View/scrollEdgeEffectStyle(_:for:))

Configures the scroll edge effect style for scroll views within this
hierarchy.

[`scrollEdgeEffectHidden(_:for:)`](/documentation/SwiftUI/View/scrollEdgeEffectHidden(_:for:))

Hides any scroll edge effects for scroll views within this
hierarchy.

### Tab views

[`defaultAdaptableTabBarPlacement(_:)`](/documentation/SwiftUI/View/defaultAdaptableTabBarPlacement(_:))

Specifies the default placement for the tabs in a tab view using the
adaptable sidebar style.

[`defaultTabBarPlacement(_:)`](/documentation/SwiftUI/View/defaultTabBarPlacement(_:))

Specifies the preferred placement for the tabs of a [`TabView`](/documentation/SwiftUI/TabView)
in the [`sidebarAdaptable`](/documentation/SwiftUI/TabViewStyle/sidebarAdaptable) style on platforms where
the tab bar cannot adapt between different representations, and
only one representation can be shown.

[`sectionActions(content:)`](/documentation/SwiftUI/View/sectionActions(content:))

Adds custom actions to a section.

[`tabBarMinimizeBehavior(_:)`](/documentation/SwiftUI/View/tabBarMinimizeBehavior(_:))

Sets the behavior for tab bar minimization.

[`tabViewBottomAccessory(content:)`](/documentation/SwiftUI/View/tabViewBottomAccessory(content:))

Places a view as the bottom accessory of the tab view.

[`tabViewBottomAccessory(isEnabled:content:)`](/documentation/SwiftUI/View/tabViewBottomAccessory(isEnabled:content:))

Places a view as the bottom accessory of the tab view. Use
this modifier to dynamically show and hide the accessory view.

[`tabViewCustomization(_:)`](/documentation/SwiftUI/View/tabViewCustomization(_:))

Specifies the customizations to apply to the sidebar representation
of the tab view.

[`tabViewSearchActivation(_:)`](/documentation/SwiftUI/View/tabViewSearchActivation(_:))

Configures the activation and deactivation behavior of search in the
search tab.

[`tabViewSidebarHeader(content:)`](/documentation/SwiftUI/View/tabViewSidebarHeader(content:))

Adds a custom header to the sidebar of a tab view.

[`tabViewSidebarFooter(content:)`](/documentation/SwiftUI/View/tabViewSidebarFooter(content:))

Adds a custom footer to the sidebar of a tab view.

[`tabViewSidebarBottomBar(content:)`](/documentation/SwiftUI/View/tabViewSidebarBottomBar(content:))

Adds a custom bottom bar to the sidebar of a tab view.

### Toolbars

For information about toolbars, see [Toolbars](/documentation/SwiftUI/Toolbars)

Provide immediate access to frequently used commands and controls..

[`toolbar(content:)`](/documentation/SwiftUI/View/toolbar(content:))

Populates the toolbar or navigation bar with the specified items.

[`toolbar(id:content:)`](/documentation/SwiftUI/View/toolbar(id:content:))

Populates the toolbar or navigation bar with the specified items,
allowing for user customization.

[`toolbar(_:for:)`](/documentation/SwiftUI/View/toolbar(_:for:))

Specifies the visibility of a bar managed by SwiftUI.

[`contentToolbar(for:content:)`](/documentation/SwiftUI/View/contentToolbar(for:content:))

Populates the toolbar of the specified content view type with
the views you provide.

[`toolbar(removing:)`](/documentation/SwiftUI/View/toolbar(removing:))

Remove a toolbar item present by default

[`toolbarVisibility(_:for:)`](/documentation/SwiftUI/View/toolbarVisibility(_:for:))

Specifies the visibility of a bar managed by SwiftUI.

[`toolbarBackground(_:for:)`](/documentation/SwiftUI/View/toolbarBackground(_:for:))

Specifies the preferred shape style of the background of a bar managed
by SwiftUI.

[`toolbarBackgroundVisibility(_:for:)`](/documentation/SwiftUI/View/toolbarBackgroundVisibility(_:for:))

Specifies the preferred visibility of backgrounds on a bar managed by
SwiftUI.

[`toolbarItemHidden(_:)`](/documentation/SwiftUI/View/toolbarItemHidden(_:))

Hides an individual view within a control group toolbar item.

[`toolbarForegroundStyle(_:for:)`](/documentation/SwiftUI/View/toolbarForegroundStyle(_:for:))

Specifies the preferred foreground style of bars managed by SwiftUI.

[`toolbarColorScheme(_:for:)`](/documentation/SwiftUI/View/toolbarColorScheme(_:for:))

Specifies the preferred color scheme of a bar managed by SwiftUI.

[`toolbarOverflowMenu(content:)`](/documentation/SwiftUI/View/toolbarOverflowMenu(content:))

Configures the overflow menu of a toolbar.

[`toolbarRole(_:)`](/documentation/SwiftUI/View/toolbarRole(_:))

Configures the semantic role for the content populating the toolbar.

[`toolbarMinimizationBehavior(_:for:)`](/documentation/SwiftUI/View/toolbarMinimizationBehavior(_:for:))

Sets the minimize behavior for the specified bars.

[`toolbarMinimizationRestoration(_:for:)`](/documentation/SwiftUI/View/toolbarMinimizationRestoration(_:for:))

Sets the restoration behavior for the specified bars during
minimization.

[`toolbarMinimizationSafeAreaAdjustment(_:for:)`](/documentation/SwiftUI/View/toolbarMinimizationSafeAreaAdjustment(_:for:))

Sets the safe area adjustment for the specified bars during
minimization.

[`toolbarTitleMenu(content:)`](/documentation/SwiftUI/View/toolbarTitleMenu(content:))

Configure the title menu of a toolbar.

[`toolbarTitleDisplayMode(_:)`](/documentation/SwiftUI/View/toolbarTitleDisplayMode(_:))

Configures the toolbar title display mode for this view.

[`ornament(visibility:attachmentAnchor:contentAlignment:ornament:)`](/documentation/SwiftUI/View/ornament(visibility:attachmentAnchor:contentAlignment:ornament:))

Presents an ornament.

### Context menus

For information about menus in your app, see [Menus and commands](/documentation/SwiftUI/Menus-and-commands)

Provide space-efficient, context-dependent access to commands and controls..

[`contextMenu(menuItems:)`](/documentation/SwiftUI/View/contextMenu(menuItems:))

Adds a context menu to a view.

[`contextMenu(menuItems:preview:)`](/documentation/SwiftUI/View/contextMenu(menuItems:preview:))

Adds a context menu with a custom preview to a view.

[`contextMenu(forSelectionType:menu:primaryAction:)`](/documentation/SwiftUI/View/contextMenu(forSelectionType:menu:primaryAction:))

Adds an item-based context menu to a view.

### Badges

[`badge(_:)`](/documentation/SwiftUI/View/badge(_:))

Generates a badge for the view from a localized string resource.

[`badgeProminence(_:)`](/documentation/SwiftUI/View/badgeProminence(_:))

Specifies the prominence of badges created by this view.

### Lists

[`sectionIndexLabel(_:)`](/documentation/SwiftUI/View/sectionIndexLabel(_:))

Sets the label that is used in a section index to point to this
section, typically only a single character long.

### Help text

[`help(_:)`](/documentation/SwiftUI/View/help(_:))

Adds help text to a view using a localized string resource that you
provide.

### Status bar

[`statusBarHidden(_:)`](/documentation/SwiftUI/View/statusBarHidden(_:))

Sets the visibility of the status bar.

### External displays

[`sceneAccessory(content:)`](/documentation/SwiftUI/View/sceneAccessory(content:))

Defines any scene accessories associated with `self`.

### Touch Bar

[`touchBar(content:)`](/documentation/SwiftUI/View/touchBar(content:))

Sets the content that the Touch Bar displays.

[`touchBar(_:)`](/documentation/SwiftUI/View/touchBar(_:))

Sets the Touch Bar content to be shown in the Touch Bar when applicable.

[`touchBarItemPrincipal(_:)`](/documentation/SwiftUI/View/touchBarItemPrincipal(_:))

Sets principal views that have special significance to this Touch Bar.

[`touchBarCustomizationLabel(_:)`](/documentation/SwiftUI/View/touchBarCustomizationLabel(_:))

Sets a user-visible string that identifies the view’s functionality.

[`touchBarItemPresence(_:)`](/documentation/SwiftUI/View/touchBarItemPresence(_:))

Sets the behavior of the user-customized view.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)