Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10472646
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/Shared/Navigation/ContentView.swift b/Shared/Navigation/ContentView.swift
index c9cc96b..7297b6b 100644
--- a/Shared/Navigation/ContentView.swift
+++ b/Shared/Navigation/ContentView.swift
@@ -1,28 +1,31 @@
import SwiftUI
struct ContentView: View {
@ObservedObject var postStore: PostStore
@State private var selectedCollection: PostCollection = defaultDraftCollection
var body: some View {
NavigationView {
- PostList(title: "Posts")
- .frame(maxHeight: .infinity)
- .toolbar {
- NavigationLink(destination: PostEditor(post: Post())) {
- Image(systemName: "plus")
- }
+ 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)
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Feb 22, 5:46 AM (14 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3155521
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment