Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10671279
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
795 B
Subscribers
None
View Options
diff --git a/Shared/Post/PostList.swift b/Shared/Post/PostList.swift
index d3cac10..5d9eab5 100644
--- a/Shared/Post/PostList.swift
+++ b/Shared/Post/PostList.swift
@@ -1,24 +1,24 @@
import SwiftUI
struct PostList: View {
@EnvironmentObject var postStore: PostStore
- let title: String
+ var title: String
var body: some View {
List {
Text("\(postStore.posts.count) Posts")
.foregroundColor(.secondary)
ForEach(postStore.posts) { post in
PostCell(post: post)
}
}
.navigationTitle(title)
}
}
struct PostList_Previews: PreviewProvider {
static var previews: some View {
PostList(title: "Posts")
.environmentObject(testPostStore)
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, May 17, 10:08 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241294
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment