This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Description
I have an ASCollectionView that displays a grid of items. I am using supplementary nodes as item separators as shown in the following screenshot.

I am using a custom UICollectionViewLayout that also serves as the .layoutInspector object via ASCollectionViewLayoutInspecting. I'm getting some crashes when, after the collection view has already loaded and completed layout, I add more items which causes my layout to generate more supplementary nodes (a new column has been created, so an additional separator needs to be created as well). The crash is telling me that Supplementary node should exist., which I assume means that the layoutInspector didn't know that a supplementary node was supposed to be created, so an additional one wasn't.
After some digging, it looks like public func collectionView(collectionView: ASCollectionView!, supplementaryNodesOfKind kind: String!, inSection section: UInt) -> UInt is not getting called again after I make updates to the collection view (via performBatchUpdates). It looks like it needs to be getting called in - (void)willReloadData of the ASCollectionDataController, but it isn't.
Am I using all of these components correctly? Is my implementation possible?