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) } }