brightec / CustomCollectionViewLayout

Custom layout for a collection view using horizontal and vertical scrolling with sticky rows and columns
MIT License
519 stars 123 forks source link

Swift 2.2 + refactor ViewCells and sample controller #11

Closed kdazzle closed 6 years ago

kdazzle commented 8 years ago

Sorry, this is kind of a large and unwieldy PR, but I merged the DateViewCell and ContentViewCell into one class, which allowed for some duplication with cell set up to be removed.

Also made a wrapper for NSIndexPath because this library turns sections into rows and rows into columns, so the property names were really confusing. There's probably a better way of doing that, but this is at least nicer than it was.

And I made some adjustments for Swift 2.2 + broke a large method in the sample controller down into multiple methods.

farazhaider88 commented 7 years ago

how can i get this code?

kdazzle commented 7 years ago

@farazhaider88 checkout the branch at https://github.com/kdazzle/CustomCollectionViewLayout