ashfurrow / ARCollectionViewMasonryLayout

MIT License
185 stars 16 forks source link

Support header and footer views w/o supplying a ReusableView #8

Closed dblock closed 10 years ago

dblock commented 10 years ago

Should be able to add an arbitrary header and/or footer view above the masonry layout via supplementary views.

1aurabrown commented 10 years ago

in eigen we currently have the ability to specify a header view in the EmbeddedArtworkViewController, which sometimes uses ARCollectionViewMasonryLayout to layout the artworks (in the Favorites view for example). Personally I find it confusing and would prefer that the view that represents the collection of objects exist independently of any other views.

dblock commented 10 years ago

That's precisely the view that has a problem.

The gist here is that the header and the footer need to scroll together with the masonry layout. So maybe we need a stack of some kind that supports semantics of a CollectionView where cells are de-serialized in a stable way that doesn't consume more and more memory.

1aurabrown commented 10 years ago

@dblock gotcha. last time i looked at that view, i found myself wishing it was a stack view where the artwork collection view was just one of several views and wouldn't have to know about the view above it.