MessageBubble

struct MessageBubble : View

The beautiful bubbles messages are displayed in.

This view is used as a subview in ChatView.

  • The username of the person who sent a message.

    Declaration

    Swift

    var username: String
  • The message which was sent or received.

    Declaration

    Swift

    var message: MessageEntity
  • Undocumented

    Declaration

    Swift

    var dateFormatter: DateFormatter
  • Initialise a new chat bubble.

    Takes care of formatting the date to display it as HH:mm

    Declaration

    Swift

    init(username: String, message: MessageEntity)

    Parameters

    username

    The username of the person who sent the message.

    message

    The actual message which was sent.

  • Declaration

    Swift

    var body: some View { get }