Remove unnecessary EnvironmentObject

This commit is contained in:
Angelo Stavrow 2020-08-07 10:03:04 -04:00
parent 51275bc747
commit 78df0628f1
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -1,7 +1,6 @@
import SwiftUI
struct CollectionSidebar: View {
@EnvironmentObject var postStore: PostStore
@Binding var selectedCollection: PostCollection?
private let collections = postCollections
@ -15,12 +14,11 @@ struct CollectionSidebar: View {
}
}
}
.listStyle(SidebarListStyle())
.listStyle(SidebarListStyle())
}
struct CollectionSidebar_Previews: PreviewProvider {
static var previews: some View {
CollectionSidebar()
.environmentObject(testPostStore)
}
}