CreationKit Documentation

Structure Attachment​Message

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.

AttachmentMessage AttachmentMessage MessageType MessageType AttachmentMessage->MessageType

Conforms To

MessageType

Properties

sender

public let sender: Sender

message​Id

public let messageId: String

sent​Date

public let sentDate: Date

kind

public let kind: MessageKind

id

public var id: String  

Methods

make(id:​sender:​sent​Date:​attachment:​)

public static func make(
    id: String = UUID().uuidString, sender: Sender,
    sentDate: Date = Date(), attachment: MessageAttachment
  ) -> AttachmentMessage