Search Chatroom Cell
Overview
The LMChatSearchChatroomCell
is used to display search results for chatrooms. It shows the chatroom icon and name.
UI Components
groupIcon
: AnLMImageView
displaying the chatroom icon.titleLabel
: AnLMLabel
showing the chatroom name.
Methods
configure(with:)
: Initializes the cell with the providedContentModel
data.
Customization
CustomSearchChatroomCell
class CustomSearchChatroomCell: LMChatSearchChatroomCell {
override func setupAppearance() {
super.setupAppearance()
// Add custom styling here
}
}
AppDelegate.swift
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
LMUIComponents.shared.searchChatroomCell = CustomSearchChatroomCell.self
// ...
return true
}