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.
-
An text view for new comments. See
TextToolBar
.Declaration
Swift
public let textToolBar: TextToolBar
-
A comments paginator. See
ReactionPaginator
.Declaration
Swift
public var reactionPaginator: ReactionPaginator<ReactionExtraData, T.ActorType>?
-
Section types in the table view.
Declaration
Swift
public var sections: DetailViewControllerSectionTypes
-
A list of section data for the table view.
Declaration
Swift
public private(set) var sectionsData: [DetailViewControllerSection] { get }
-
A number of reply comments for the top level comments.
Declaration
Swift
public var childCommentsCount: Int
-
Show the text view for the adding new comments.
Declaration
Swift
public var canAddComment: Bool
-
Show the section title even if it’s empty.
Declaration
Swift
public var showZeroSectionTitle: Bool
-
An activity presenter. See
ActivityPresenter
.Declaration
Swift
public var activityPresenter: ActivityPresenter<T>? { get set }
-
Undocumented
Declaration
Swift
open override func viewDidLoad()
-
Return a title of the section by the section type.
Declaration
Swift
open func sectionTitle(for type: DetailViewControllerSectionTypes) -> String?
-
Return a title of in the section by the section index.
Declaration
Swift
public func sectionTitle(in section: Int) -> String?
-
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
-
Undocumented
Declaration
Swift
open func tableView(_ tableView: UITableView, shouldHighlightRowAt indexPath: IndexPath) -> Bool
-
Undocumented
Declaration
Swift
open func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
-
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)
-
Setup the close button on the navigation bar, when the view controller modally presented.
Declaration
Swift
open func setupNavigationBarForModallyPresented()