I am new to iOS development and I am stocked with a bug in my app. I have this News Like/InShorts app where I have used collection view. One news feed takes up the entire screen space. Assume I have a video and a description text for every news feed. Now what happens is when I partial scroll from collection view cell [0,1] to [0,2] I don't release my finger and I come back to [0,1]. Now as soon as the collection view cell is partially scrolled to the second cell, CellForItemAt is called for next second cell and the video URL of the second cell is binded to the object but I didn't scroll to the second cell yet. So when I click onto the play button in cell one, it loads the video which was a part of the second cell. So my question is, how to avoid this behavior of cellForItemAt being called on a partial scroll?
PS: I am not prefetching Data.