Page MenuHomeMusing Studio

No OneTemporary

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)
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, May 17, 9:38 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241272

Event Timeline