DZNEmptyDataSet
DZNEmptyDataSet copied to clipboard
when a tableview has many sections and all the sections are folded, the empty view will be shown on the tableview
Did you find any solution about it? @coder-weed-Xu
I solved my issue with following code
func emptyDataSetShouldDisplay(_ scrollView: UIScrollView) -> Bool {
return viewModel.numOfCell == 0
}
numOfCell is the size of the array that you are displaying inside table view. So unless your array size not equal to 0 the empty table view won't be shown.