Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F14751380
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/PostCollection/CollectionSidebar.swift b/Shared/PostCollection/CollectionSidebar.swift
index 983ef5a..faaf62f 100644
--- a/Shared/PostCollection/CollectionSidebar.swift
+++ b/Shared/PostCollection/CollectionSidebar.swift
@@ -1,26 +1,24 @@
import SwiftUI
struct CollectionSidebar: View {
- @EnvironmentObject var postStore: PostStore
@Binding var selectedCollection: PostCollection?
private let collections = postCollections
var body: some View {
List {
ForEach(collections) { collection in
NavigationLink(
destination: PostList(title: collection.title, posts: showPosts(for: collection)).tag(collection)) {
Text(collection.title)
}
}
}
- .listStyle(SidebarListStyle())
+ .listStyle(SidebarListStyle())
}
struct CollectionSidebar_Previews: PreviewProvider {
static var previews: some View {
CollectionSidebar()
- .environmentObject(testPostStore)
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Apr 24, 6:19 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3709474
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment