---
title: "hidden(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/toolbarcontent/hidden(_:)"
---

# hidden(_:)

Hides a toolbar item within its toolbar.

## Declaration

```swift
nonisolated func hidden(_ hidden: Bool = true) -> some ToolbarContent

```

## Parameters

- `hidden`: Whether the toolbar item is hidden.

## Discussion

Discussion Use this modifier to conditionally display a toolbar item in the toolbar. struct ContentView {     @State private var showDownloads = false

var body: some View {         BrowserView()             .toolbar {                 ToolbarItem {                     DownloadsButton()                 }                 .hidden(!showDownloads)             }     } }
