Hi! I'm having an issue where my sidebar isn't showing my NavigationView's how I wanted them to be displayed (See screenshots). I would like if it could take up the whole second panel, any help would be greatly appreciated, thanks!
import SwiftUI
struct SidebarView: View {
var body: some View {
NavigationView {
List {
NavigationLink(destination: ExploreView()) {
Label("Explore", systemImage: "rectangle.3.group")
}
NavigationLink(destination: ListView()) {
Label("Devices", systemImage: "list.bullet.below.rectangle")
}
}
.listStyle(.sidebar)
.navigationTitle("Orchard")
ExploreView()
}
}
}
struct SidebarView_Previews: PreviewProvider {
static var previews: some View {
SidebarView()
.environmentObject(ModelData())
.previewInterfaceOrientation(.landscapeLeft)
}
}