Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Claude31, your answer did put me on the right track. I realized that the real issue is that I don't think storyboards support compositional layouts just yet, and when you put a cell/view in a storyboard, it is somehow tied to the layout. I found that I could get visual design using a nib though, and then this code works:
let headerRegistration = UICollectionView.SupplementaryRegistration<HeaderReusableView>(supplementaryNib: UINib(nibName: "HeaderReusableView", bundle: Bundle(for: HeaderReusableView.classForCoder())), elementKind: "header") { supplementaryView, elementKind, indexPath in
supplementaryView.titleLabel?.text = self.sections[indexPath.section].rawValue
}