diff --git a/Shared/Navigation/ContentView.swift b/Shared/Navigation/ContentView.swift index ae9fb98..50cfe34 100644 --- a/Shared/Navigation/ContentView.swift +++ b/Shared/Navigation/ContentView.swift @@ -1,31 +1,27 @@ import SwiftUI struct ContentView: View { @ObservedObject var postStore: PostStore var body: some View { NavigationView { PostList(postStore: postStore) .frame(maxHeight: .infinity) .navigationTitle("Posts") .toolbar { - NavigationLink( - destination: PostEditor( - post: Post() - ) - ) { + NavigationLink(destination: PostEditor(post: Post())) { Image(systemName: "plus") } } Text("Select a post, or create a new draft.") .foregroundColor(.secondary) } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView(postStore: testPostStore) } }