You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
collectionView.emptyDataSetView { (view) in
view.titleLabelString(NSAttributedString(string: "Nothing to see here!"))
view.shouldDisplay(true)
}
And I used deleteItems to delete the items one by one. After deleting the last item, I expected the empty data source to show up, but it does not. Bug?
The text was updated successfully, but these errors were encountered:
It's look like a bug. When deleteItems, reload will not be executed. It can be solved by swizzling method deleteItems to caculate number of items and then loading emptyDataSet. But DZNEmptyDataSet didn't do this, I dont know why
I also noticed that the empty data source view does not disappear when I add a row/item to an empty table view/collection view. Probably the same issue as this.
I added an empty data source like this:
And I used
deleteItems
to delete the items one by one. After deleting the last item, I expected the empty data source to show up, but it does not. Bug?The text was updated successfully, but these errors were encountered: