BaseFlatFeedViewController

open class BaseFlatFeedViewController<T: ActivityProtocol>: UIViewController, UITableViewDataSource
    where T.ActorType: UserProtocol & UserNameRepresentable & AvatarRepresentable,
          T.ReactionType == GetStream.Reaction<ReactionExtraData, T.ActorType>

A base flat feed view controller with basic setup of a table view.

  • A table view of the flat feed.

    Declaration

    Swift

    public private(set) lazy var tableView: UITableView { get set }
  • A refresh control.

    Declaration

    Swift

    public let refreshControl: UIRefreshControl
  • Undocumented

    Declaration

    Swift

    override open func viewDidLoad()
  • Undocumented

    Declaration

    Swift

    open override func viewWillAppear(_ animated: Bool)
  • Layout the table view to the view controller view. Override this method for a custom layout.

    Declaration

    Swift

    open func setupTableView()
  • Setup the refresh control into the table view. Handle value changes to reload table data. Override this method for a custom action of the refresh control.

    Declaration

    Swift

    open func setupRefreshControl()
  • Override this method to reload data.

    Declaration

    Swift

    open func reloadData()
  • A default callback when the data of a flat feed is loaded. Override this method for a custom handling.

    Declaration

    Swift

    open func dataLoaded(_ error: Error?)

Table View Data Source

  • Undocumented

    Declaration

    Swift

    open func numberOfSections(in tableView: UITableView) -> Int
  • Undocumented

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
  • Undocumented

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
  • Undocumented

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String?
  • Undocumented

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, titleForFooterInSection section: Int) -> String?
  • Undocumented

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool
  • Undocumented

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath)
  • Undocumented

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool
  • Undocumented

    Declaration

    Swift

    open func tableView(_ tableView: UITableView, moveRowAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath)

Cells