Skip to main content

Group Chatrooms Feed

Overview

The LMChatGroupFeedViewController displays a list of chatrooms and an explore tab, provides navigation to individual chat screens, search functionality, and a user profile view.

Functionality

Protocols

This screen implements LMChatHomeFeedListView protocol

UI Components

  • feedListView: An instance of LMChatHomeFeedListView that displays the list of chatrooms and explore tab.
  • profileIcon: An LMImageView showing the user's profile picture in the navigation bar.

Methods

  • setupRightItemBars(): Sets up the right navigation bar items (profile and search).
  • searchBarItemClicked(): Handles taps on the search icon.
  • profileItemClicked(): Handles taps on the profile icon.

Customization

To customize the LMChatGroupFeedViewController, subclass it and override the necessary methods:

LMChatGroupFeedViewController.swift
class CustomGroupFeedViewController: LMChatGroupFeedViewController {
override func profileItemClicked() {
super.profileItemClicked()
// Add custom handling here
}
}
AppDelegate.swift
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
LMCoreComponents.shared.groupChatFeedScreen = CustomHomeFeedListView.self
// ...
return true
}