Remove unnecessary selectedCollection binding in CollectionSidebar

This commit is contained in:
Angelo Stavrow 2020-08-07 10:05:33 -04:00
parent 78df0628f1
commit d4e3cf5f95
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
2 changed files with 2 additions and 4 deletions

View File

@ -6,7 +6,7 @@ struct ContentView: View {
var body: some View {
NavigationView {
CollectionSidebar(selectedCollection: $selectedCollection)
CollectionSidebar()
PostList(
title: selectedCollection?.title ?? allPostsCollection.title,

View File

@ -1,10 +1,8 @@
import SwiftUI
struct CollectionSidebar: View {
@Binding var selectedCollection: PostCollection?
private let collections = postCollections
var body: some View {
List {
ForEach(collections) { collection in