taglia3 / TGLParallaxCarousel

A lightweight 3D Linear Carousel with parallax effect
MIT License
436 stars 63 forks source link

-reloadData appends rather then reloads #10

Open wryphonedev opened 7 years ago

wryphonedev commented 7 years ago

-reloadData results in datasource being appended rather then reloaded. This results in multiple instances of the same entity appearing. The issue is exacerbated because -reloadData is called when different properties of the parallax view are set. For example, if the example properties 'type', 'margin', and 'selectedIndex' are set, and 5 is returned in the -numberOfItems delegate call, the view will appear with 15 items rather then 5.