---
title: SidebarCommands
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/sidebarcommands
---

# SidebarCommands

A built-in set of commands for manipulating window sidebars.

## Declaration

```swift
nonisolated struct SidebarCommands
```

## Mentioned in

Building and customizing the menu bar with SwiftUI

## Overview

Overview These commands are optional and can be explicitly requested by passing a value of this type to the commands(content:) modifier.

## Topics

### Creating the command group

- [init()](swiftui/sidebarcommands/init().md)

## Relationships

### Conforms To

- [Commands](swiftui/commands.md)

## See Also

### Getting built-in command groups

- [TextEditingCommands](swiftui/texteditingcommands.md)
- [TextFormattingCommands](swiftui/textformattingcommands.md)
- [ToolbarCommands](swiftui/toolbarcommands.md)
- [ImportFromDevicesCommands](swiftui/importfromdevicescommands.md)
- [InspectorCommands](swiftui/inspectorcommands.md)
- [EmptyCommands](swiftui/emptycommands.md)
