Add Sidebar title for iOS and set SidebarListStyle

This commit is contained in:
Angelo Stavrow 2020-08-07 10:29:22 -04:00
parent 9e87bff6a5
commit 822d7310dc
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -2,7 +2,7 @@ import SwiftUI
struct CollectionSidebar: View {
private let collections = postCollections
var body: some View {
List {
ForEach(collections) { collection in
@ -13,8 +13,10 @@ struct CollectionSidebar: View {
}
}
}
.listStyle(SidebarListStyle())
.navigationTitle("Collections")
.listStyle(SidebarListStyle())
}
}
struct CollectionSidebar_Previews: PreviewProvider {
static var previews: some View {