Skip to main content

Like List

Overview

The LMFeedLikeListScreen is designed to present a list of users who have liked a specific post/comment. It displays the user images along with their names and a custom title (if available), and provides a count of the total number of likes for the post.

LMFeedLikeListScreen

UI Components

  • memberListView: A LMTableView used to display the list of users who have liked the post.

Data Variables

  • userData: An array containing the data models for each user cell.
  • cellHeight: The fixed height of each user cell.
  • totalLikes: The total number of likes for the post.

Action Handlers

  • didTapUser(uuid:): Called when a user cell is tapped.

Customization

CustomLikeViewController.swift
class CustomLikeListScreen: LMFeedLikeListScreen {
override func setupAppearance() {
super.setupAppearance()
tableView.backgroundColor = .lightGray
}
}
AppDelegate.swift
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
Components.shared.likeListScreen = CustomLikeListScreen.self
// ...
return true
}