<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.0.0 - 27.0.0",
    "tvOS: 13.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 6.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/navigationBarHidden(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE19navigationBarHiddenyQrSbF"
  },
  "title" : "navigationBarHidden(_:)"
}
-->

# navigationBarHidden(_:)

Hides the navigation bar for this view.

```
nonisolated func navigationBarHidden(_ hidden: Bool) -> some View
```

## Parameters

`hidden`

A Boolean value that indicates whether to hide the
navigation bar.

## Discussion

Use this method to hide the navigation bar. This modifier only takes effect
when the modified view is inside of and visible within a [`NavigationView`](/documentation/SwiftUI/NavigationView).

---

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)