iOS13 DiffableDataSource Invalid parameter not satisfying: indexPath || ignoreInvalidItems
Your data model has to conform to Hashable
and Equatable
, so that the diffing algorithm can track changes between snapshots.
If there is an issue with a collision between two objects, or you have implemented either of those protocols in such a way as to allow for two objects to appear equal to the diffing algorithm, you will get a runtime assert exception.
I'd track down exactly how your model object have inherited or implemented those protocols.