I am attempting to build a simple Sidebar / List / Detail split view using the new SidebarListStyle(). An item must be selected in the Sidebar for the List to render its items.
By default NavigationView collapses the Sidebar, so on initial launch of the app the user has to click the expand button, or if on the iPhone, has to navigate back two screens. I want the Sidebar to appear by default.
Is there a way to do this?
If I wrap DocumentListView and DocumentView in a conditional, they will render as a VStack, instead of the nice three column split view.
By default NavigationView collapses the Sidebar, so on initial launch of the app the user has to click the expand button, or if on the iPhone, has to navigate back two screens. I want the Sidebar to appear by default.
Is there a way to do this?
Code Block swift var body: some View { SidebarListView() DocumentListView(projectUUID: nil) DocumentView(document: nil) }
If I wrap DocumentListView and DocumentView in a conditional, they will render as a VStack, instead of the nice three column split view.