AdmiralUIKit Views Chat TextOperationView - admiral-team/admiralui-ios GitHub Wiki

Overview

TextOperationView - the component that presents a rounded view with title, description and chatBubbleStatusView.

Code

let textOperationView = TextOperationView()
     textOperationView.style = .success
     textOperationView.chatStatus = .receive
     textOperationView.direction = .left
     textOperationView.timeName = "21:21"
     textOperationView.titleName = "+ 35 000 ₽"
     textOperationView.discriptionName =  "НПО «Ромашка»"

You can create a TextOperationView with the zero frame rectangle by specifying the following parameters in init:

Initializer parameters:
style: TextOperationViewStyle - The style of TextOperationView.

 chatStatus: ChatStatus? - The status of ChatBubbleStatusView.

 direction: ChatDirection - The direction of ChatBubbleStatusView.

 time: String - A time of TextOperationView.

 title: String - A title text of TextOperationView.

 description: String - A description text of TextOperationView.

Live Example

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

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.