NavigationSplitViewDestination

@MainActor
public final class NavigationSplitViewDestination<PresentationConfigurationType, SplitViewType> : NavigationSplitViewDestinationable where PresentationConfigurationType : DestinationPresentationConfiguring, SplitViewType : NavigationSplitViewDestinationInterfacing, PresentationConfigurationType.DestinationType == SplitViewType.DestinationType

A Destination which represents a SwiftUI View that contains a NavigationSplitView.

This is a generic Destination that can be used to represent NavigationSplitView implementations in a SwiftUI-based app.

To implement the NavigationSplitView associated with this Destination and to enable dynamic updating of your NavigationSplitView‘s column, bind these properties from inside each column’s closure using a BindableContainerView.

Example:

NavigationSplitView(columnVisibility: $columnVisibility) {
    BindableContainerView(content: $destinationState.destination.currentSidebar)
} content: {
    BindableContainerView(content: $destinationState.destination.currentContent)
} detail: {
    BindableContainerView(content: $destinationState.destination.currentDetail)
}