Skip to main content

Tagging User Item

Overview

LMFeedTaggingUserItem is designed to display a user's profile image and name in a table view. This cell is used in a tagging/mentions flow to display the list of users being tagged or mentioned.

LMFeedNotificationView

UI Components

  • userImage: An LMImageView that displays the user's profile image.
  • userNameLabel: An LMLabel that displays the user's name.
  • separatorView: A view that acts as a separator or divider at the bottom of the cell.

Methods

  • configure(): Configures the cell with the provided data. It sets the user's name and profile image based on the data.

Customisation

CustomTaggingView.swift
class CustomTaggingView: LMFeedTaggingUserItem {
override func setupAppearance() {
super.setupAppearance()
backgroundColor = .green
}
}
AppDelegate.swift
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
LMUIComponents.shared.taggingUserItem = CustomTaggingView.self
// ...
return true
}