Skip to main content

Search Screen

Overview

The LMChatSearchListViewController displays search interface. It allows users to search for chatrooms and messages, displaying results in a table view.

Functionality

UI Components

  • tableView: An LMTableView that displays the search results.
  • searchController: A UISearchController for handling search input.

Data Variables

  • searchResults: An array of ContentModel objects representing the current search results.
  • timer: An optional Timer used for debouncing search requests.

Customization

class CustomSearchListViewController: LMChatSearchListViewController {
override func setupAppearance() {
super.setupAppearance()
// Add custom appearance setup
}
}
AppDelegate.swift
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
LMUIComponents.shared.searchListScreen = CustomParticipantListViewController.self
// ...
return true
}