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.
Platform Compatibility
iOS 17.0+ iPadOS 17.0+ macOS 14.0+ watchOS 10.0+ tvOS 17.0+ visionOS 1.0+
Tags
SwiftUI Code
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