I'm implementing a search bar in a collection view with diffable data source, and whenever I search a non-existent item twice (if I type a search that returns no matches, delete one character so it returns matches, then type that character again), the app crashes with NSInternalInconsistencyException: Invalid Section 2.
The crash occurs when I apply a new snapshot to the datasource.
Can anyone tell me what this exception means? There doesn't seem to be any documentation of it anywhere, but it looks like an issue around creating diffable data source snapshots.
See related (not mine) Stackoverflow post here: link
The crash occurs when I apply a new snapshot to the datasource.
Can anyone tell me what this exception means? There doesn't seem to be any documentation of it anywhere, but it looks like an issue around creating diffable data source snapshots.
See related (not mine) Stackoverflow post here: link