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

# navigationBarBackButtonHidden(_:)

Hides the navigation bar back button for the view.

```
nonisolated func navigationBarBackButtonHidden(_ hidesBackButton: Bool = true) -> some View
```

## Parameters

`hidesBackButton`

A Boolean value that indicates whether to
hide the back button. The default value is `true`.

## Discussion

Use `navigationBarBackButtonHidden(_:)` to hide the back button for this
view.

This modifier only takes effect when this view is inside of and visible
within a [`NavigationStack`](/documentation/SwiftUI/NavigationStack) or a [`NavigationSplitView`](/documentation/SwiftUI/NavigationSplitView) in narrow size classes.

The example below demonstrates how to hide the navigation back button
for a view within a navigation stack:

```swift
NavigationStack {
   List {
       NavigationLink("Mint") {
           Color.mint
               .navigationBarBackButtonHidden()
       }
   }
   .navigationTitle("Colors")
}
```

---

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)