Skip to main content

VideoAttachmentComposerPreview

A view that displays the video attachment preview in composer.

open class VideoAttachmentComposerPreview: _View, ThemeProvider 

Inheritance

_View, ThemeProvider

Properties

width

open var width: CGFloat = 100

height

open var height: CGFloat = 100

content

Local URL of the video to show a preview for.

public var content: URL? 

previewImageView

The view that displays the video preview.

open private(set) lazy var previewImageView: UIImageView = UIImageView()
.withoutAutoresizingMaskConstraints

cameraIconView

The view that displays camera icon.

open private(set) lazy var cameraIconView: UIImageView = UIImageView()
.withoutAutoresizingMaskConstraints

videoDurationLabel

The view that displays video duration.

open private(set) lazy var videoDurationLabel: UILabel = UILabel()
.withAdjustingFontForContentSizeCategory
.withBidirectionalLanguagesSupport
.withoutAutoresizingMaskConstraints

gradientView

The view that renders the gradient behind camera and video duration.

open private(set) lazy var gradientView = components
.gradientView.init()
.withoutAutoresizingMaskConstraints

loadingIndicator

The view that displays a loading indicator while the video preview is loading.

open private(set) lazy var loadingIndicator = components
.loadingIndicator.init()
.withoutAutoresizingMaskConstraints

Methods

setUpAppearance()

override open func setUpAppearance() 

setUpLayout()

override open func setUpLayout() 

updateContent()

override open func updateContent() 

Did you find this page helpful?