I have an UICollectionView with a custom layout to display something similar to a Gantt chart. A decoration view is used to add a timeline across the top of the collection view. I need to pass along an NSDate to the decoration view for display purposes, but I'm not really sure how to correctly do so. The Apple docs say that it shouldn't be tied to the data source, which it's not really, but I need to give the decoration view some additional context. Here's what I'm wondering:
- What is the appropriate way to pass additional context (parameters/arguments) to a decoration view? Custom UICollectionViewLayoutAttributes subclass with an added NSDate property?
- Is this just a misuse of a decoration view at this point? Should I be using a supplementary view instead?