Skip to main content

Post Search

LikeMinds Feed SDK offers various Post Search Screen implementations to cater to different use cases. These screens are responsible for allowing users to search for posts within the feed, with each variant optimized for specific content types or interactions. The screens also handle post interactions such as liking, commenting, sharing, and saving.

LMFeedSearchPostScreen

File Location:

Functionality​

UI Components​

  • postList: A LMTableView for displaying search results
  • searchController: A UISearchController for handling search input
  • indicatorView: A UIActivityIndicatorView for loading states
  • noResultView: A LMFeedNoResultView displayed when no search results are found

Data Variables​

  • posts: List of posts for search results

Cells Registered​

Customisation​

CustomSearchPostScreen.swift
class CustomSearchPostScreen: LMFeedSearchPostScreen {
override func setupAppearance() {
super.setupAppearance()

tableView.backgroundColor = .lightGray
}
}
AppDelegate.swift
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
Components.shared.searchPostScreen = CustomSearchPostScreen.self
// ...
return true
}