Skip to main content

Chat Participant Cell

Overview

The LMChatParticipantCell is a custom table view cell designed to display participant information in a list. It encapsulates an LMChatParticipantView to present detailed information about a chat participant, including their name, designation, profile image, and custom title.

UI Components

  • participantView: An instance of LMChatParticipantView that displays the participant's information.
  • sepratorView: A thin view used as a separator between cells.

Methods

  • configure(with:): Populates the cell with data.

Customization

CustomChatParticipantCell.swift
class CustomChatParticipantCell: LMChatParticipantCell {
override func setupAppearance() {
super.setupAppearance()
sepratorView.backgroundColor = .lightGray
}

override func configure(with data: ContentModel) {
super.configure(with: data)
// Add custom configuration logic
}
}
AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
LMUIComponents.shared.participantListCell = CustomChatParticipantCell.self
// ...
return true
}