cell not visible in special condition
In my project, I set MIN_NUMBER_OF_ITEMS_REQUIRED to 7, and make the data source has 8 items. When I scroll the collection, there are some cells not visible. Like the image showing.

I do not understand why this happened. Can you help me to this.
If I understand correctly this is something that cannot be got right using this method, collection view itself just doesn't think that those cells are visible because they are out of some bounds. this area doesn't match collection view bounds and I don't know how to specify it. As far as I know this area depends on collection view frame and collection view item size.
I suggest you find another way for implementing this behaviour
For example you can get the same results making large scroll area with number_of_items muliplied by N times and without using this layout and also recalculate index paths in your collection view delegate and datasource. You get a little extra code but it will be more manageable.
Fine. Thank you and I will try another way.