---
title: NavigationSplitViewVisibility
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/navigationsplitviewvisibility
---

# NavigationSplitViewVisibility

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

## Declaration

```swift
struct NavigationSplitViewVisibility
```

## Overview

Overview Use a value of this type to control the visibility of the columns of a NavigationSplitView. Create a State property with a value of this type, and pass a Binding to that state to the init(columnVisibility:sidebar:detail:) or 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. Hide the leading column of a three-column navigation split view with doubleColumn. Show all the columns with all. Rely on the automatic behavior for the current context with automatic. note: Some platforms don’t respect every option. For example, macOS always displays the content column.

## Topics

### Getting visibilities

- [automatic](swiftui/navigationsplitviewvisibility/automatic.md)
- [all](swiftui/navigationsplitviewvisibility/all.md)
- [doubleColumn](swiftui/navigationsplitviewvisibility/doublecolumn.md)
- [detailOnly](swiftui/navigationsplitviewvisibility/detailonly.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Presenting views in columns

- [Bringing robust navigation structure to your SwiftUI app](swiftui/bringing-robust-navigation-structure-to-your-swiftui-app.md)
- [Migrating to new navigation types](swiftui/migrating-to-new-navigation-types.md)
- [NavigationSplitView](swiftui/navigationsplitview.md)
- [navigationSplitViewStyle(_:)](swiftui/view/navigationsplitviewstyle(_:).md)
- [navigationSplitViewColumnWidth(_:)](swiftui/view/navigationsplitviewcolumnwidth(_:).md)
- [navigationSplitViewColumnWidth(min:ideal:max:)](swiftui/view/navigationsplitviewcolumnwidth(min:ideal:max:).md)
- [NavigationLink](swiftui/navigationlink.md)
