Skip to main content

ChatMessageGalleryView

Gallery view that displays images and video previews.

open class ChatMessageGalleryView: _View, ThemeProvider 

Inheritance

_View, ThemeProvider

Properties

content

Content the gallery should display.

public var content: [UIView] = [] 

itemSpots

The spots gallery items takes.

public private(set) lazy var itemSpots = [
UIView().withoutAutoresizingMaskConstraints,
UIView().withoutAutoresizingMaskConstraints,
UIView().withoutAutoresizingMaskConstraints,
UIView().withoutAutoresizingMaskConstraints
]

moreItemsOverlay

Overlay to be displayed when content contains more items than the gallery can display.

public private(set) lazy var moreItemsOverlay = UILabel()
.withoutAutoresizingMaskConstraints

previewsContainerView

Container holding all previews.

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

leftPreviewsContainerView

Left container for previews.

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

rightPreviewsContainerView

Right container for previews.

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

Methods

setUpLayout()

override open func setUpLayout() 

setUpAppearance()

override open func setUpAppearance() 

updateContent()

override open func updateContent() 

Did you find this page helpful?