Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F14871179
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 3696b0f..c00662b 100644
--- a/Shared/Post/PostCell.swift
+++ b/Shared/Post/PostCell.swift
@@ -1,40 +1,40 @@
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
Sun, May 17, 8:16 AM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3732478
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment