StorytellerRowView

The StorytellerRowView inherits from StorytellerListView (see StorytellerListView)

Attributes

All of the properties and methods from StorytellerListView apply to the StorytellerRowView. There are only 2 special attributes:

  • startInset - the left-inset of the Stories inside the row, default value is 0
  • endInset - the right-inset of the Stories inside the row, default value is 0

Using in dynamic containers

To use StorytellerRowView in dynamic container like UITableView section header, please set desired rowHeight and allow UITableView to use auto-sizing:

   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
   }

Storyboard

Attributes can be applied to any StorytellerRowView instance in code or under the Attributes Inspector in the Storyboard.

PREVIOUS
Forward Arrow