Skip to main content

chat-message-link-preview-view-properties

content

public var content: ChatMessageLinkAttachment? 

imagePreview

Image view showing link's preview image.

public private(set) lazy var imagePreview = UIImageView()
.withoutAutoresizingMaskConstraints

authorBackground

Background for authorLabel.

public private(set) lazy var authorBackground = UIView()
.withoutAutoresizingMaskConstraints

authorLabel

Label showing author of the link.

public private(set) lazy var authorLabel = UILabel()
.withoutAutoresizingMaskConstraints
.withBidirectionalLanguagesSupport

titleLabel

Label showing title.

public private(set) lazy var titleLabel = UILabel()
.withoutAutoresizingMaskConstraints
.withBidirectionalLanguagesSupport

bodyTextView

Text view for showing content's text.

public private(set) lazy var bodyTextView = UITextView()
.withoutAutoresizingMaskConstraints

textStack

ContainerStackView for labels with text metadata.

public private(set) lazy var textStack = ContainerStackView()
.withoutAutoresizingMaskConstraints

authorOnImageConstraint

Constraint for authorLabel.

open var authorOnImageConstraint: NSLayoutConstraint?

imagePreviewHeightConstraint

Constraint for imagePreview's height.

open var imagePreviewHeightConstraint: NSLayoutConstraint?

Methods

setUpAppearance()

override open func setUpAppearance() 

setUp()

override open func setUp() 

setUpLayout()

override open func setUpLayout() 

updateContent()

override open func updateContent() 

tintColorDidChange()

override open func tintColorDidChange()

Did you find this page helpful?