ChatMessageFileAttachmentListView.ItemView
open class ItemView: _View, ThemeProvider
Inheritance
Properties
content
Content of the attachment ChatMessageFileAttachment
public var content: ChatMessageFileAttachment?
didTapOnAttachment
Closure what should happen on tapping the given attachment.
open var didTapOnAttachment: ((ChatMessageFileAttachment) -> Void)?
fileNameLabel
Label which shows name of the file, usually with extension (file.pdf)
open private(set) lazy var fileNameLabel = UILabel()
.withoutAutoresizingMaskConstraints
.withBidirectionalLanguagesSupport
.withAdjustingFontForContentSizeCategory
fileSizeLabel
Label indicating size of the file.
open private(set) lazy var fileSizeLabel = UILabel()
.withoutAutoresizingMaskConstraints
.withBidirectionalLanguagesSupport
.withAdjustingFontForContentSizeCategory
loadingIndicator
Animated indicator showing progress of uploading of a file.
open private(set) lazy var loadingIndicator = components
.loadingIndicator
.init()
.withoutAutoresizingMaskConstraints
actionIconImageView
imageView
indicating action for the file attachment. (Download / Retry upload...)
open private(set) lazy var actionIconImageView = UIImageView().withoutAutoresizingMaskConstraints
mainContainerStackView
open private(set) lazy var mainContainerStackView: ContainerStackView = ContainerStackView()
.withoutAutoresizingMaskConstraints
spinnerAndSizeStack
Stack containing loading indicator and label with file size.
open private(set) lazy var spinnerAndSizeStack: ContainerStackView = ContainerStackView()
.withoutAutoresizingMaskConstraints
fileNameAndSizeStack
Stack containing file name and the size of the file.
open private(set) lazy var fileNameAndSizeStack: ContainerStackView = ContainerStackView()
.withoutAutoresizingMaskConstraints
fileIconImageView
open private(set) lazy var fileIconImageView = UIImageView().withoutAutoresizingMaskConstraints
Methods
setUp()
override open func setUp()
setUpAppearance()
override open func setUpAppearance()
setUpLayout()
override open func setUpLayout()
updateContent()
override open func updateContent()
didTapOnAttachment(_:)
@objc open func didTapOnAttachment(_ recognizer: UITapGestureRecognizer)