dzenbot / DZNEmptyDataSet

A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display
https://www.cocoacontrols.com/controls/dznemptydataset
MIT License
12.09k stars 1.73k forks source link

Present Empty State after data finished loading #448

Open fuxlud opened 4 years ago

fuxlud commented 4 years ago

How can I achieve Empty State being presented after data is finished loading? At the moment, the Empty state is presented for a split second before the data is fetched from the server. I would like the Empty view to be presented after this is done, so it will not be presented if there is data on the server. Maybe there is an option to have a separate loading view instead of an empty view?

dzenbot commented 4 years ago

A screenshot of what you're looking to achieve may be easier to understand. Have you tried the examples provided? There's many use cases for different applications.