Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F14751414
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
833 B
Subscribers
None
View Options
diff --git a/Shared/Post/PostList.swift b/Shared/Post/PostList.swift
index 5d9eab5..7b777ca 100644
--- a/Shared/Post/PostList.swift
+++ b/Shared/Post/PostList.swift
@@ -1,24 +1,25 @@
import SwiftUI
struct PostList: View {
@EnvironmentObject var postStore: PostStore
var title: String
+ var posts: [Post]
var body: some View {
List {
Text("\(postStore.posts.count) Posts")
.foregroundColor(.secondary)
- ForEach(postStore.posts) { post in
+ ForEach(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
Fri, Apr 24, 6:25 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3709484
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment