The view will not update correctly
When UITableView or UICollectionView refresh UI via insertItems(at:) or deleteItems(at:), the empty view will not show or hide currectly.
It is because only reloadData() method swizzled.
Seems like someone didn't read the code source properly ;) https://github.com/dzenbot/DZNEmptyDataSet/blob/b5b9216d09f19455aa616d3bda32e1c38d3178bd/Source/UIScrollView%2BEmptyDataSet.m#L406 Maybe you forgot to wrap your calls in begin/end updates?
Sorry about that, it is my omission. What i use is UICollectionView for a favorites list.
I use Realm as db, and update UICollectionView with func performBatchUpdates(_ updates: (() -> Void)?, completion: ((Bool) -> Void)? = nil) after the content changed
Begin/end updates is deprecated. Any plans to support performBatchUpdates?
I will try to fix it. Any suggestion?