Skip to main content

Chat Reaction Title Cell

Overview

The LMChatReactionTitleCell is used to display reaction titles. It shows a title, count, and indicates selection state.

UI Components

  • titleLabel: An LMLabel that displays the reaction title and count.
  • selectedView: An LMView that visually indicates the selected state.
  • containerView: An inherited view from LMCollectionViewCell that contains the other UI components.

Methods

  • configure(data: ContentModel): Updates the cell's appearance based on the provided data.

Customization

CustomChatReactionTitleCell.swift
class CustomChatReactionTitleCell: LMChatReactionTitleCell {
override func setupViews() {
super.setupViews()
// Add custom view setup here
}

override func configure(data: ContentModel) {
super.configure(data: data)
// Add custom configuration logic here
}
}
AppDelegate.swift
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
// Register custom cell class if needed
LMUIComponents.shared.reactionTitleCell = CustomChatReactionTitleCell.self
// ...
return true
}