Post

Replies

Boosts

Views

Activity

Diffable Data Source: Invalid Section
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 - https://stackoverflow.com/questions/62971264/getting-an-nsinternalinconsistencyexception-reason-invalid-section-0-when
2
0
2.5k
Jul ’20