Skip to main content

attachments-preview-vc-properties

content

open var content: [AttachmentPreviewProvider] = [] 

didTapRemoveItemButton

The closure handler when an attachment has been removed.

open var didTapRemoveItemButton: ((Int) -> Void)?

selectedAttachmentType

open var selectedAttachmentType: AttachmentType?

scrollViewHeightConstraint

public private(set) var scrollViewHeightConstraint: NSLayoutConstraint?

horizontalConstraints

open private(set) var horizontalConstraints: [NSLayoutConstraint] = []

verticalConstraints

open private(set) var verticalConstraints: [NSLayoutConstraint] = []

scrollView

open private(set) lazy var scrollView: UIScrollView = UIScrollView()
.withoutAutoresizingMaskConstraints

horizontalStackView

open private(set) lazy var horizontalStackView: ContainerStackView = ContainerStackView(axis: .horizontal, spacing: 8)
.withoutAutoresizingMaskConstraints

verticalStackView

open private(set) lazy var verticalStackView: ContainerStackView = ContainerStackView(axis: .vertical, spacing: 8)
.withoutAutoresizingMaskConstraints

attachmentViews

open var attachmentViews: [UIView] 

stackViewAxis

open var stackViewAxis: NSLayoutConstraint.Axis 

Methods

setUpAppearance()

override open func setUpAppearance() 

setUpLayout()

override open func setUpLayout() 

updateContent()

override open func updateContent() 

setupHorizontalStackView()

open func setupHorizontalStackView() 

setupVerticalStackView()

open func setupVerticalStackView()

Did you find this page helpful?