---
title: "Preferred Top Column | Explore SwiftUI"
description: "Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead"
canonical_url: "https://exploreswiftui.com/library/navigation/preferred-top-column"
meta:
  author: "Explore SwiftUI"
  "og:description": "Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead"
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Preferred%2BTop%2BColumn%2Cdescription_~Q29udHJvbHMgd2hpY2ggY29sdW1uIGFwcGVhcnMgb24gdG9wIG9mIHRoZSBzdGFjayB3aGVuIE5hdmlnYXRpb25TcGxpdFZpZXcgY29sbGFwc2VzIGludG8gYSBzaW5nbGUgc3RhY2sgaW4gY2VydGFpbiBjb250ZXh0cywgc3VjaCBhcyBvbiBpUGhvbmUsIHdoZW4gaVBob25lIER1byBpcyBjbG9zZWQsIG9yIG9uIEFwcGxlIFdhdGNoLiBCeSBkZWZhdWx0LCB0aGUgc2lkZWJhciBhcHBlYXJzIG9uIHRvcC4gSW4gdGhpcyBjYXNlLCB0aGUgZGV0YWlsIGNvbHVtbiBkb2VzIGluc3RlYWQu%2Ccategory_Navigation%2Cimage_~L2FwaS9pbWFnZXMvMjU2L3ZhcmlhbnRzLzE5Njc~dj0xNzkxMzc5NDc0OTY0JnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyIsInZpc2lvbk9TIl19%2Cp_Ii9saWJyYXJ5L25hdmlnYXRpb24vcHJlZmVycmVkLXRvcC1jb2x1bW4i%2Cs_B3nycyhKlTxuUkiS.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Preferred Top Column | Explore SwiftUI"
  "twitter:description": "Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead"
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Preferred%2BTop%2BColumn%2Cdescription_~Q29udHJvbHMgd2hpY2ggY29sdW1uIGFwcGVhcnMgb24gdG9wIG9mIHRoZSBzdGFjayB3aGVuIE5hdmlnYXRpb25TcGxpdFZpZXcgY29sbGFwc2VzIGludG8gYSBzaW5nbGUgc3RhY2sgaW4gY2VydGFpbiBjb250ZXh0cywgc3VjaCBhcyBvbiBpUGhvbmUsIHdoZW4gaVBob25lIER1byBpcyBjbG9zZWQsIG9yIG9uIEFwcGxlIFdhdGNoLiBCeSBkZWZhdWx0LCB0aGUgc2lkZWJhciBhcHBlYXJzIG9uIHRvcC4gSW4gdGhpcyBjYXNlLCB0aGUgZGV0YWlsIGNvbHVtbiBkb2VzIGluc3RlYWQu%2Ccategory_Navigation%2Cimage_~L2FwaS9pbWFnZXMvMjU2L3ZhcmlhbnRzLzE5Njc~dj0xNzkxMzc5NDc0OTY0JnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyIsInZpc2lvbk9TIl19%2Cp_Ii9saWJyYXJ5L25hdmlnYXRpb24vcHJlZmVycmVkLXRvcC1jb2x1bW4i%2Cs_B3nycyhKlTxuUkiS.png"
  "twitter:title": "Preferred Top Column | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

**Interactive previews**[ iPhone Duo](https://exploreswiftui.com/duo?element=256) [ iPhone](https://exploreswiftui.com/iphone?element=256)

# **Preferred Top Column**

Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead.

![Preferred Top Column - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/256/variants/1967?v=1791379474964&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 17.0+ iPadOS 17.0+ macOS 14.0+ watchOS 10.0+ tvOS 17.0+ visionOS 1.0+

### **Tags**

### **SwiftUI Code**

[ Docs](<https://developer.apple.com/documentation/swiftui/navigationsplitview/init(preferredcompactcolumn:sidebar:content:detail:)>)

```
NavigationSplitView(preferredCompactColumn: .constant(.detail)) {
    Color.blue
} content: {
    Color.indigo
} detail: {
    Color.orange
}
```

### **Found an issue or have a suggestion?**

Created: October 7, 2026Updated: October 7, 2026

### **More Navigation Components **

[**View all **](https://exploreswiftui.com/library/navigation)

![Toolbar Title Alignment - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/258/variants/2111?v=1793542963212&r=2&w=412&q=75&f=webp)

### **Toolbar Title Alignment**

Sets the preferred alignment of the navigation bar’s title. The navigation bar resolves the alignment of its title automatically based on context, and toolbar roles. Use this modifier to override that resolution.

![Hide Sidebar Toggle - iOS on iPhone Duo - Landscape - Fully Open - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/255/variants/1925?v=1791377398818&r=2&w=412&q=75&f=webp)

### **Hide Sidebar Toggle**

Removes the sidebar toggle toolbar item a NavigationSplitView adds by default.

![Content NavigationSplitView - iOS on iPhone Duo - Landscape - Fully Open - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/242/variants/1528?v=1790273533713&r=2&w=412&q=75&f=webp)

### **Content NavigationSplitView**

Creates a three-column navigation split view.

![NavigationSplitView - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/241/variants/1983?v=1791379705544&r=2&w=412&q=75&f=webp)

### **NavigationSplitView**

Creates a two-column navigation split view.

![Navigation Subtitle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/94/variants/289?v=1794864940225&r=2&w=412&q=75&f=webp)

### **Navigation Subtitle**

Configures the view’s subtitle for purposes of navigation, using a localized string

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Current Value Gauge  - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/39/variants/227?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Current Value Gauge **

Creates a gauge showing a value within a range and that describes the gauge’s purpose and current value

![Swipe Action - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/125/variants/357?v=1795201623181&r=2&w=412&q=75&f=webp)

### **Swipe Action**

Adds custom swipe actions to a row in a list.

![Materials - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/26/variants/169?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Materials**

All materials

![ProgressView - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/78/variants/65?v=1790073478842&r=2&w=412&q=75&f=webp)

### **ProgressView**

The different ProgressView initializers

![Divider Color - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/71/variants/110?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Divider Color**

Customizing the color of the Divider

![InsetGroupedListStyle - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/106/variants/277?v=1790073478842&r=2&w=412&q=75&f=webp)

### **InsetGroupedListStyle**

The list style that describes the behavior and appearance of an inset grouped list.

![Context Menu Preview - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/25/variants/159?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Context Menu Preview**

A context menu with custom preview

![Content Unavailable - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/4/variants/37?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Content Unavailable**

A placeholder for empty results with optional button

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/navigation/preferred-top-column#webpage","@type":"WebPage","dateModified":"2026-10-07T13:24:34.992Z","datePublished":"2026-10-07T13:10:04.184Z","description":"Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead","name":"Preferred Top Column","url":"https://exploreswiftui.com/library/navigation/preferred-top-column","breadcrumb":{"@id":"https://exploreswiftui.com/library/navigation/preferred-top-column#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/navigation/preferred-top-column#article"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/navigation/preferred-top-column"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/navigation/preferred-top-column#article","citation":"https://developer.apple.com/documentation/swiftui/navigationsplitview/init(preferredcompactcolumn:sidebar:content:detail:)","dateModified":"2026-10-07T13:24:34.992Z","datePublished":"2026-10-07T13:10:04.184Z","description":"Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead","headline":"Preferred Top Column","inLanguage":"en-US","name":"Preferred Top Column","thumbnailUrl":"https://exploreswiftui.com/api/images/256/variants/1967?v=1791379474964&r=2","url":"https://exploreswiftui.com/library/navigation/preferred-top-column","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"hasPart":{"@id":"https://exploreswiftui.com/library/navigation/preferred-top-column#source-code"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@id":"https://exploreswiftui.com/library/navigation/preferred-top-column#webpage"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/navigation/preferred-top-column#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/navigation/preferred-top-column#source-code","@type":"SoftwareSourceCode","codeSampleType":"full example","description":"Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead","name":"Preferred Top Column SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"NavigationSplitView(preferredCompactColumn: .constant(.detail)) {\n    Color.blue\n} content: {\n    Color.indigo\n} detail: {\n    Color.orange\n}","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"Navigation"},{"@type":"Thing","name":"Preferred Top Column"}]},{"@id":"https://exploreswiftui.com/library/navigation/preferred-top-column#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"Navigation","item":"https://exploreswiftui.com/library/navigation","position":2},{"@type":"ListItem","name":"Preferred Top Column","item":"https://exploreswiftui.com/library/navigation/preferred-top-column","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/256/variants/1967?v=1791379474964&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/256/variants/1967?v=1791379474964&r=2"}]}
```