The StorytellerRowView
inherits from StorytellerListView
(see StorytellerListView)
All of the properties and methods from StorytellerListView apply to the StorytellerRowView.
To use StorytellerRowView
in dynamic container like UITableView
section header, please set desired rowHeight
and allow UITableView
to use autosizing:
tableView.sectionHeaderHeight = UITableView.automaticDimension
// Can be anything greater than zero.
tableView.estimatedSectionHeaderHeight = 1
then implement UITableViewDelegate
methods:
override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
storytellerRowView = StorytellerRowView()
return storytellerRowView
}
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return UITableView.automaticDimension
}
Attributes can be applied to any StorytellerRowView
instance in code or under the Attributes Inspector in the Storyboard.