---
title: "toggleSidebar(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiresponderstandardeditactions/togglesidebar(_:)"
---

# toggleSidebar(_:)

## Declaration

```swift
optional func toggleSidebar(_ sender: Any?)
```
