Reproducing Popular iOS Controls - Part 13: | Ray Wenderlich Videos

In this video you'll learn how to create a custom UICollectionLayout that looks just like the Robinhood newsfeed.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5298-reproducing-popular-ios-controls/lessons/13

I have one question in this video. helper func indexPathsForElementsInRect(_ rect: CGRect) but inside func, rect do not use?. Can you please explain it?

@leamars Can you please help with this when you get a chance? Thank you - much appreciated! :]

You’re correct, passing the rect is unnecessary. I believe I had some code in indexPathsForElementsInRect previously that did use the rect and then forgot to remove it once I’ve refactored it.