README and documentationIGListAdapter has a delegate callback called, emptyViewForListAdapter, which allows users to configure a view that should appear when their CollectionView has no data. However, I've found that when the CollectionView also has a Refresh Control (available by default in iOS 10 and above), the experience isn't great.

Assuming this is something that community wants, we could modify IGListAdapter so that it takes whatever view is provided by the user, and simply put it inside a plain UICollectionViewCell whose size is that of the entire CV.
Introduce a new function emptyCellForListAdapter: or emptyControllerForListAdapter: which returns either a UICollectionViewCell, or a IGSectionController (respectively). The cell or section controller that is returned would be used to display something when the collection view is empty, thus making the empty view move when the Refresh Control is pulled.
This call would supercede emptyViewForListAdapter and it would be marked deprecated for future releases.
Simply create my own IGSectionController for empty states and wire it up to my own ListAdapter. I would simply choose to not use emptyViewForListAdapter:.
Obviously there are a number of ways to tackle this, I'm really interested to see what the community thinks! This is what I'm going for:

IGListExperiment to start.Looking forward to everyone's response!
+1 for this.
In case of no data I am currently returning a specific NoDataSectionController and ignoring the emptyView method, exactly to resolve this issue
@dshahidehpour awesome write up here w/ examples. I'm absolutely down w/ this idea now. Let's do it!
We probably want to avoid adding a cell+section b/c that'll make translating index paths and collection view updates a nightmare. We could probably add the view right into the collection view maybe?
Do you want to take on this PR? Would be awesome.
@rnystrom I'm actually working on a pull request right now! I went the route of adding a section controller/cell. It wasn't painful at all, but, I might have done something horribly wrong. I'll put the PR up here so the community can see it, and if it's not what you want, I'll change it :)
@dshahidehpour I agree with @rnystrom Since the refresh view is not part of the data, it should not be a cell/section, which is binding to the data model.
IMH, something like UIRefreshControl in UITableView might be a better choice.
Or something like DZNEmptyDataSet may be better for overall design 馃? b/c unlike UITableView, collectionView does not restrict scroll direction. And pull-to-refresh is not suitable for horizontal scrolling.
@zhubofei small misunderstanding, I think. @dshahidehpour is going to change the empty view so it scrolls w/ the background. I don't think we're going to touch the PTR at all, esp since its built in w/ iOS 10 on UICollectionView.
I actually used the bg view b/c of exactly that sort of "empty view" design. But I think that scrolling w/ the PTR is a totally valid case, and its weird when the content doesn't scroll w/ the PTR.
UPDATE: Me trying to add a section controller was a terrible idea. I have a clean fix, just cleaning up. Expect to see a diff here soon :)
@racer1988 I just landed a fix for this in fce3286ae
Most helpful comment
@racer1988 I just landed a fix for this in fce3286ae