Structure
AttachmentMessage
public struct AttachmentMessage: MessageType
Use this MessageType to render an attachment The MessageAttachment associated with this message should have a unique ID to track loading states on slow networks.
Relationships
Conforms To
MessageType
Properties
sender
public let sender: Sender
messageId
public let messageId: String
sentDate
public let sentDate: Date
kind
public let kind: MessageKind
id
public var id: String
Methods
make(id:sender:sentDate:attachment:)
public static func make(
id: String = UUID().uuidString, sender: Sender,
sentDate: Date = Date(), attachment: MessageAttachment
) -> AttachmentMessage