Skip to main content

Poll Result List

LMFeedPollResultListScreen is a view controller responsible for displaying a list of users who voted for a specific poll option. It provides a user interface with a table view of user items and handles pagination.

LMFeedLikeListScreen

UI Elements

  • voteView: Table view for displaying the list of users who voted
  • indicatorView: Activity indicator for loading states
  • noResultView: View displayed when there are no results

Data Variables

  • userList: List of users who voted for the poll option

Actions

  • onTapUser(with: uuid) - Handles tapping on a user in the list (empty implementation, can be overridden).

Customisation

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