DetailViewController

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

Detail View Controller for an activity from ActivityPresenter.

It shows configurable sections of the activity details:

  • activity content
  • likes
  • reposts
  • comments

Contains TextToolBar for the adding of new comments.

Table View Data Source

  • Declaration

    Swift

    open override func setupTableView()
  • Declaration

    Swift

    open override func setupRefreshControl()
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    open override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
  • A title for bottom comment note, that it has replies.

    Declaration

    Swift

    open func moreCommentsTitle(with count: Int) -> String

Table View - Select Cell

Table View - Comments

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

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

Modally presented

  • Setup the close button on the navigation bar, when the view controller modally presented.

    Declaration

    Swift

    open func setupNavigationBarForModallyPresented()