teambition/TBEmptyDataSet

tb_swizzleCollectionViewReloadData() is called but emptyDataSetShouldDisplay is still displayed

JeffersonBe opened this issue · 1 comments

Hi,

Thanks for your library very useful! I have an issue with my collectionView using a fetchedResultsController.

The implement of my NSFetchedResultsControllerDelegate might be the issue with this one… Anyway, if you have any idea how to resolve this that would be good :-).

func emptyDataSetShouldDisplay(scrollView: UIScrollView!) -> Bool {
        guard fetchedResultsController.fetchedObjects?.count == 0 else {
            return false
        }
        return true
    }

It was indeed an issue with my NSFetchedResultsControllerDelegate… Forgot to reload the collectionView… This issue can be closed.