AdmiralSwiftUI Chat ChatBubbleView - admiral-team/admiralui-ios GitHub Wiki

Overview

ChatBubbleView - A view for chat message.

Code

 ChatBubbleView(
        text: "Hi, Andrey",
        direction: .left,
        time: "12:34",
        status: .error,
        name: "Антон")

You can create a ChatBubbleView by specifying the following parameters in the initializer

 - text: String - Text message.
 - direction: ChatDirection - A direction for text mesage. Can be: left, right
 - time: String - Time text message.
 - status: ChatStatus - A status ChatBubbleView. Can be in the following states: loading, error, sent, receive, read
 - name: String - Name text on up message.
 - isRoundAllCorners: Bool - Flag for round all corners.

Live Example

To run live demo with ChatBubbleView open Xcode and run project with Example target. Then in the Chat -> Text Message

Contribution

You can help us to find bugs or ask us to add features.

  • To start issue please use ready-made templates.
  • To make changes to the repository, you need to create a fork of the project, make changes to the code and create a pull request in our project. You can read more about this in the Github documentation.