Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10671186
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/Post/PostCell.swift b/Shared/Post/PostCell.swift
index c00662b..bacce53 100644
--- a/Shared/Post/PostCell.swift
+++ b/Shared/Post/PostCell.swift
@@ -1,40 +1,39 @@
import SwiftUI
struct PostCell: View {
@EnvironmentObject var postStore: PostStore
@ObservedObject var post: Post
var body: some View {
NavigationLink(
destination: PostEditor(post: post)
) {
HStack {
VStack(alignment: .leading) {
Text(post.title)
.font(.headline)
.lineLimit(1)
Text(buildDateString(from: post.createdDate))
.font(.caption)
- .foregroundColor(.secondary)
.lineLimit(1)
}
Spacer()
PostStatusBadge(post: post)
}
.padding(5)
}
func buildDateString(from date: Date) -> String {
let dateFormatter = DateFormatter()
dateFormatter.dateStyle = .long
dateFormatter.timeStyle = .short
return dateFormatter.string(from: date)
}
}
struct PostCell_Previews: PreviewProvider {
static var previews: some View {
PostCell(post: testPost)
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, May 17, 8:37 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241229
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment