diff --git a/Shared/Navigation/ContentView.swift b/Shared/Navigation/ContentView.swift index 7297b6b..54d5d20 100644 --- a/Shared/Navigation/ContentView.swift +++ b/Shared/Navigation/ContentView.swift @@ -1,31 +1,31 @@ import SwiftUI struct ContentView: View { @ObservedObject var postStore: PostStore - @State private var selectedCollection: PostCollection = defaultDraftCollection + @State private var selectedCollection: PostCollection = allPostsCollection var body: some View { NavigationView { VStack { PostList(title: selectedCollection.title) .frame(maxHeight: .infinity) .toolbar { NavigationLink(destination: PostEditor(post: Post())) { Image(systemName: "plus") } } CollectionPicker(selectedCollection: $selectedCollection) } Text("Select a post, or create a new draft.") .foregroundColor(.secondary) } .environmentObject(postStore) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView(postStore: testPostStore) } }