TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8.02k stars 1.29k forks source link

[RFC] An empty data set API for ASCollectionNode and ASTableNode #674

Open DreamingInBinary opened 7 years ago

DreamingInBinary commented 7 years ago

I'm wondering if there is any need from the Texture community for an empty data set API within Texture?

We've hit a few snags along the way with the ever popular DZNEmptyDataSet and it's also not really maintained at this point. The biggest snag we usually encounter with that is centering the empty data view, and the fact that its implementation adds the empty data view to the collection or table view itself.

At Buffer, I've got this working by swizzling performBatchUpdates and reloadDataWithCompletion. Here's a gist. That gives us something like this:

simulator screen shot - iphone x - 2017-11-14 at 10 05 02

I'm thinking if it were built into Texture, this could happen without any swizzling. As for showing the view itself, I'm not entirely sure if it would make more sense to provide it as a vanilla UIView as we've done or use an ASDisplayNode.

Anyone else needing this kind of functionality or have other solutions?

aimm commented 6 years ago

+1

mqch295 commented 5 years ago

+1

skg54 commented 5 years ago

+1