diff --git a/Shared/PostCollection/CollectionSidebar.swift b/Shared/PostCollection/CollectionSidebar.swift index 2e0f997..f327128 100644 --- a/Shared/PostCollection/CollectionSidebar.swift +++ b/Shared/PostCollection/CollectionSidebar.swift @@ -1,23 +1,25 @@ import SwiftUI struct CollectionSidebar: View { private let collections = postCollections - + var body: some View { List { ForEach(collections) { collection in NavigationLink( destination: PostList(selectedCollection: collection) ) { Text(collection.title) } } } - .listStyle(SidebarListStyle()) + .navigationTitle("Collections") + .listStyle(SidebarListStyle()) } +} struct CollectionSidebar_Previews: PreviewProvider { static var previews: some View { CollectionSidebar() } }