[Framework] Show top words for filtered items in the Feed List (#12)
This PR contains the work done to show the top 3 words belonging to the filtered reviews in the `FeedListViewController` view controller. Reviewed-on: rock-n-code/app-reviews#12 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #12.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// TableCell.swift
|
||||
// ReviewsUIKit
|
||||
//
|
||||
// Created by Javier Cicchelli on 21/03/2024.
|
||||
// Copyright © 2024 Röck+Cöde VoF. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
public protocol TableCell: UITableViewCell {
|
||||
|
||||
// MARK: Properties
|
||||
static var cellID: String { get }
|
||||
|
||||
// MARK: Functions
|
||||
static func dequeue(from tableView: UITableView) -> UITableViewCell?
|
||||
static func register(in tableView: UITableView)
|
||||
|
||||
}
|
||||
|
||||
// MARK: - Implementations
|
||||
extension TableCell {
|
||||
|
||||
public static func dequeue(from tableView: UITableView) -> UITableViewCell? {
|
||||
tableView.dequeueReusableCell(withIdentifier: cellID)
|
||||
}
|
||||
|
||||
public static func register(in tableView: UITableView) {
|
||||
tableView.register(Self.self, forCellReuseIdentifier: cellID)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user