Home / IOS Development / Collectionview cells receive incorrect information: iOSProgramming

Collectionview cells receive incorrect information: iOSProgramming



Hello. I’m currently having issues with my batch view where some cells receive incorrect information while browsing. As you can see in the video, the first product has a price where it says “from 84.95: -” and then when you scroll it out of the screen and back it says “149: -“. I just put the information in cellForItemAt

theCell.displayProductInformation (product: productListVM? .getTheProduct (at: indexPath.row – heroCount – 2), viewModel: productListVM).

Does anyone have any idea why this might be?


Source link