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
Tags
SwiftUI Code
NavigationSplitView(preferredCompactColumn: .constant(.detail)) {
Color.blue
} content: {
Color.indigo
} detail: {
Color.orange
}