Skip to main content

ChatMessageListScrollOverlayView

View that is displayed as top overlay when message list is scrolling

open class ChatMessageListScrollOverlayView: _View, AppearanceProvider 

Inheritance

_View, AppearanceProvider

Properties

content

The displayed content.

open var content: String? 

textLabel

The view used to display the content.

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

dataSource

The data source used to get the content to display.

public weak var dataSource: ChatMessageListScrollOverlayDataSource?

listView

The list view that is listened for being scrolled.

public weak var listView: UITableView? 

Methods

setUpLayout()

override open func setUpLayout() 

setUpAppearance()

override open func setUpAppearance() 

updateContent()

override open func updateContent() 

layoutSubviews()

override open func layoutSubviews() 

scrollStateChanged(_:)

Is invoked when a pan gesture state is changed.

@objc
open func scrollStateChanged(_ sender: UIPanGestureRecognizer)

setAlpha(_:)

Updates the alpha of the overlay.

open func setAlpha(_ alpha: CGFloat) 

Did you find this page helpful?