Swift DiffableDataSource make insert&delete instead of reload
问题 I have a hard time to understand how DiffableDataSource works. I have ViewModel like this struct ViewModel: Hashable { var id: Int var value: String func hash(into hasher: inout Hasher) { hasher.combine(id) } } I have tableView populated by cachedItems like ViewModele above. When API response arrives I want to add a new one, delete missing one, refresh viewModel.value of items already present in tableView and finally order it. Everything works fine except one thing - reloading items. My