Structure
TextMessage
public struct TextMessage: MessageType, Identifiable
Used in a MessagesViewController when it needs to show a text based message.
Relationships
Conforms To
Identifiable
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:message:)
public static func make(
id: String = UUID().uuidString, sender: Sender,
sentDate: Date = Date(), message: String) -> TextMessage