Disabled Toolbar Vertical Behavior
Disables the vertical bar.
Platform Compatibility
Tags
SwiftUI Code
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?
More View Components
View allToolbar 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.
Music Picker
Presents a music picker to select items from the Apple Music catalog and the user’s music library.
Explore Other Components
Browse allCustom Placeholder Async URL Image
Loads and displays a modifiable image from the specified URL load request using a custom placeholder until the image loads.
Uniform Concentric Rectangle
Create a rectangle with the same corner style set on four corners.
Disable Sheet Dismiss Swipe
Conditionally prevents interactive dismissal of presentations like popovers, sheets, and inspectors. Dragging the sheet is still possible to a limited extent, as shown in the screenshot, but it will never be dismissed.
Image Label
Creates a label with an icon image and a title generated from a localized string.
Navigation Subtitle
Configures the view’s subtitle for purposes of navigation, using a localized string