RFQuiltLayout
RFQuiltLayout copied to clipboard
Fix broken logic with multiple sections
There is an issue with the logic in fillInBlocksToUnrestrictedRow: when using collections views with multiple sections. The for loop for rows starts row at self.lastIndexPathPlaced.row + 1, this is incorrect if section != self.lastIndexPathPlaced.section, in which case, row should start at 0.
To see a demonstration of the issue yourself, create a simple collection view with two sections, each with one item. You should see that only the item in the first section is created. This PR fixes that.