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.
There is an issue with the logic in
fillInBlocksToUnrestrictedRow:
when using collections views with multiple sections. The for loop for rows startsrow
atself.lastIndexPathPlaced.row + 1
, this is incorrect ifsection != self.lastIndexPathPlaced.section
, in which case,row
should start at0
.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.