Skip to main content

ChatMessagePopupVC

_ChatMessagePopupVC is shown when user long-presses a message. By default, it has a blurred background, reactions, and actions which are shown for a given message and with which user can interact.

open class ChatMessagePopupVC: _ViewController, ComponentsProvider 

Inheritance

_ViewController, ComponentsProvider

Properties

messageContainerStackView

ContainerStackView encapsulating underlying views reactionsController, actionsController and messageContentView.

open private(set) lazy var messageContainerStackView = ContainerStackView()
.withoutAutoresizingMaskConstraints

blurView

UIView with UIBlurEffect that is shown as a background.

open private(set) lazy var blurView: UIView 

messageContentContainerView

Container view that holds messageContentView.

open private(set) lazy var messageContentContainerView = UIView()
.withoutAutoresizingMaskConstraints

messageBubbleViewInsets

Insets for messageContentView's bubble view.

public var messageBubbleViewInsets: UIEdgeInsets = .zero

messageContentView

messageContentView being displayed.

public var messageContentView: ChatMessageContentView!

message

Message data that is shown.

public var message: ChatMessage 

messageViewFrame

Initial frame of a message.

public var messageViewFrame: CGRect!

actionsController

_ChatMessageActionsVC instance for showing actions.

public var actionsController: ChatMessageActionsVC!

reactionsController

_ChatMessageReactionsVC instance for showing reactions.

public var reactionsController: ChatMessageReactionsVC?

Methods

setUp()

override open func setUp() 

setUpAppearance()

override open func setUpAppearance() 

setUpLayout()

override open func setUpLayout() 

didTapOnView(_:)

Triggered when view is tapped.

@objc open func didTapOnView(_ gesture: UITapGestureRecognizer) 

Did you find this page helpful?