mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Remove unnecessary selectedCollection binding in CollectionSidebar
This commit is contained in:
parent
78df0628f1
commit
d4e3cf5f95
@ -6,7 +6,7 @@ struct ContentView: View {
|
||||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
CollectionSidebar(selectedCollection: $selectedCollection)
|
||||
CollectionSidebar()
|
||||
|
||||
PostList(
|
||||
title: selectedCollection?.title ?? allPostsCollection.title,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user