sidebarToggle
TypeScriptstatic get sidebarToggle(): ToolbarDefaultItemKindSwift declarationstatic let sidebarToggle: ToolbarDefaultItemKindThe sidebar toggle toolbar item a `NavigationSplitView` adds by default.
struct · iOS 17.0+ · SDK 27.1
struct ToolbarDefaultItemKindA kind of toolbar item a `View` adds by default. `View`s 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.
static get sidebarToggle(): ToolbarDefaultItemKindSwift declarationstatic let sidebarToggle: ToolbarDefaultItemKindThe sidebar toggle toolbar item a `NavigationSplitView` adds by default.
static get title(): ToolbarDefaultItemKindSwift declarationstatic let title: ToolbarDefaultItemKindThe title and subtitle shown in title bar / navigation bar.
static get search(): ToolbarDefaultItemKindSwift declarationstatic let search: ToolbarDefaultItemKindThe search item added by a ``View/searchable(text:isPresented:placement:prompt:)`` modifier. Use a `.search` default item kind with ``DefaultToolbarItem/init(kind:placement:)`` to customize the ``ToolbarItemPlacement`` of a default item kind. The search default item kind can be placed in the ``ToolbarItemPlacement/bottomBar`` on all supported platforms. On iOS, it can also be placed in the top bar.
No declarations were skipped in this snapshot.