<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/NavigationSplitViewVisibility",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI29NavigationSplitViewVisibilityV"
  },
  "title" : "NavigationSplitViewVisibility"
}
-->

# NavigationSplitViewVisibility

The visibility of the leading columns in a navigation split view.

```
struct NavigationSplitViewVisibility
```

## Overview

Use a value of this type to control the visibility of the columns of a
[`NavigationSplitView`](/documentation/SwiftUI/NavigationSplitView). Create a [`State`](/documentation/SwiftUI/State) property with a
value of this type, and pass a [`Binding`](/documentation/SwiftUI/Binding) to that state to the
[`init(columnVisibility:sidebar:detail:)`](/documentation/SwiftUI/NavigationSplitView/init(columnVisibility:sidebar:detail:)) or
[`init(columnVisibility:sidebar:content:detail:)`](/documentation/SwiftUI/NavigationSplitView/init(columnVisibility:sidebar:content:detail:))
initializer when you create the navigation split view. You can then
modify the value elsewhere in your code to:

- Hide all but the trailing column with [`detailOnly`](/documentation/SwiftUI/NavigationSplitViewVisibility/detailOnly).
- Hide the leading column of a three-column navigation split view
  with [`doubleColumn`](/documentation/SwiftUI/NavigationSplitViewVisibility/doubleColumn).
- Show all the columns with [`all`](/documentation/SwiftUI/NavigationSplitViewVisibility/all).
- Rely on the automatic behavior for the current context with [`automatic`](/documentation/SwiftUI/NavigationSplitViewVisibility/automatic).

> Note: Some platforms don’t respect every option. For example, macOS always
> displays the content column.

## Topics

### Getting visibilities

[`automatic`](/documentation/SwiftUI/NavigationSplitViewVisibility/automatic)

Use the default leading column visibility for the current device.

[`all`](/documentation/SwiftUI/NavigationSplitViewVisibility/all)

Show all the columns of a three-column navigation split view.

[`doubleColumn`](/documentation/SwiftUI/NavigationSplitViewVisibility/doubleColumn)

Show the content column and detail area of a three-column navigation
split view, or the sidebar column and detail area of a two-column
navigation split view.

[`detailOnly`](/documentation/SwiftUI/NavigationSplitViewVisibility/detailOnly)

Hide the leading two columns of a three-column navigation split view, so
that just the detail area shows.



---

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)