From be39448e01fe46ee72b727519d704593e2a4a27a Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 29 Jun 2020 06:31:50 -0500 Subject: [PATCH] Change to sidebar list style --- Multiplatform/Shared/Sidebar/SidebarView.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Multiplatform/Shared/Sidebar/SidebarView.swift b/Multiplatform/Shared/Sidebar/SidebarView.swift index c6c4357ba..27dd08f3d 100644 --- a/Multiplatform/Shared/Sidebar/SidebarView.swift +++ b/Multiplatform/Shared/Sidebar/SidebarView.swift @@ -16,16 +16,13 @@ struct SidebarView: View { var body: some View { List { ForEach(sidebarModel.sidebarItems) { section in - Section(header: Text(section.nameForDisplay)) { - ForEach(section.children ?? [SidebarItem]()) { topItem in - OutlineGroup(topItem, children: \.children) { sidebarItem in - Text(sidebarItem.nameForDisplay) - } - } + OutlineGroup(sidebarModel.sidebarItems, children: \.children) { sidebarItem in + Text(sidebarItem.nameForDisplay) } } } .navigationTitle(Text("Feeds")) + .listStyle(SidebarListStyle()) .onAppear { sceneModel.sidebarModel = sidebarModel sidebarModel.delegate = sceneModel