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 layout simplification #12

Closed jkereako closed 6 years ago

jkereako commented 8 years ago

Description

The purpose of this PR is to simplify the code without changing behavior or coding style.

I made this file more "Swifty". I noticed several Objective-C idioms such as NSMutableArray and calls to self when referring to an property.

Additionally, I simplified some blocks of code without changing the behavior, such as sizeForItemWithColumnIndex.

In any case, this project is a great idea. Good work!