ToolbarDefaultItemKind

A kind of toolbar item a View adds by default.

StructureiOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+ToolbarDefaultItemKind in SwiftUI

Declaration

React
type ToolbarDefaultItemKind = 'search' | 'sidebarToggle' | 'title';
Swift
struct ToolbarDefaultItemKind

Pass a literal, or build one with SwiftUI.ToolbarDefaultItemKind from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Overview

Views can add toolbar items clients may wish to remove or customize. A default item kind can be passed to the View.toolbar(removing:) modifier to remove the item. Documentation on the View placing the default item should reference the ToolbarDefaultItemKind used to remove the item.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Navigation.