import SwiftUI struct ConversationMessageContainer: View { let message: Message let isOutgoing: Bool var body: some View { Text(message.body ?? "...") .font(.body2) .foregroundColor(Color.Main.black) .multilineTextAlignment(.leading) .padding(10) } } struct MessageAttr: View { let message: Message var body: some View { VStack(alignment: .leading, spacing: 0) { Text(message.date, style: .time) .font(.sub2) .foregroundColor(Color.Main.gray) Spacer() if message.sentError { Image(systemName: "exclamationmark.circle") .font(.body3) .foregroundColor(Color.Tango.redLight) } else if message.pending { Image(systemName: "clock") .font(.body3) .foregroundColor(Color.Main.gray) } } } }