CreationKit Documentation

Structure Text​Message

public struct TextMessage: MessageType, Identifiable  

Used in a MessagesViewController when it needs to show a text based message.

TextMessage TextMessage MessageType MessageType TextMessage->MessageType Identifiable Identifiable TextMessage->Identifiable

Conforms To

Identifiable
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:​message:​)

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