1234567891011121314151617181920212223242526272829303132 |
- //
- // NotificationRow.swift
- // ntfy.sh
- //
- // Created by Andrew Cope on 1/15/22.
- //
- import SwiftUI
- struct NotificationRowView: View {
- let notification: Notification
- var body: some View {
- VStack(alignment: .leading, spacing: 0) {
- HStack {
- Text(notification.title ?? "")
- .font(.headline)
- .bold()
- .lineLimit(1)
- Spacer()
- Text(notification.shortDateTime())
- .font(.subheadline)
- .foregroundColor(.gray)
- }
- Spacer()
- Text(notification.message ?? "")
- .font(.body)
- }
- .padding(.all, 4)
- }
- }
|