Skip to main content

gallery-collection-view-cell-properties

didTapOnce

Triggered when the scroll view is single tapped.

open var didTapOnce: (() -> Void)?

content

The cell content.

open var content: AnyChatMessageAttachment? 

scrollView

UIScrollView to enable zooming the content.

public private(set) lazy var scrollView = UIScrollView()
.withoutAutoresizingMaskConstraints

Methods

setUpAppearance()

override open func setUpAppearance() 

setUp()

override open func setUp() 

setUpLayout()

override open func setUpLayout() 

handleDoubleTapOnScrollView()

Triggered when scroll view is double tapped.

@objc
open func handleDoubleTapOnScrollView()

viewForZooming(in:)

open func viewForZooming(in scrollView: UIScrollView) -> UIView? 

handleSingleTapOnScrollView()

Triggered when scroll view is single tapped.

@objc
open func handleSingleTapOnScrollView()

prepareForReuse()

override open func prepareForReuse()

Did you find this page helpful?