<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SidebarCommands",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15SidebarCommandsV"
  },
  "title" : "SidebarCommands"
}
-->

# SidebarCommands

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

```
nonisolated struct SidebarCommands
```

## Overview

These commands are optional and can be explicitly requested by passing a
value of this type to the [`commands(content:)`](/documentation/SwiftUI/Scene/commands(content:)) modifier.

## Topics

### Creating the command group

[`init()`](/documentation/SwiftUI/SidebarCommands/init())

A new value describing the built-in sidebar-related commands.



---

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)