๐Ÿ“ฆNavigationSplitView

๐Ÿšง ๆ–ฝๅทฅไธญ

SwiftUI โŸฉ navigation โŸฉ NavigationSplitView

A view that organizes your views in 2 or 3 columns, allowing you to select items from the leading column to present a view in the trailing column.

// โญ๏ธ NavigationSplitView
NavigationSplitView { 
    // โญ๏ธ leading column of the split view
    List { <navigation links> }
} detail: { 
    // โญ๏ธ second column of the split view
    // placeholder view that shows some temporary content 
    // until you select one of the links.
    PlaceholderView()
}

NavigationSplitView looks like NavigationStack if you have a small screen size.

Last updated