teambition/TBEmptyDataSet

Remove Empty Set When Reloading Table Sections

jonathansolorzn opened this issue · 1 comments

To animate my table view reload I use the following code:

        let range = NSMakeRange(0, self.tableView.numberOfSections)
        let sections = NSIndexSet(indexesIn: range)
        self.tableView.reloadSections(sections as IndexSet, with: .automatic)

But the image and text for the empty state stays on the screen when data is reloaded, How could I solve it? It works only with tableView.reloadData()

@felixsolorzano collectionView.updateEmptyDataSetIfNeeded()