FSPagerView
FSPagerView copied to clipboard
Fix - Crash issue with numberOfItems
When numberOfItems and index both are zero causes crash
The original code seems correct to me, if you try to scroll to the 0th (first) element when there are no items in the array, then it should crash.
The original code seems correct to me, if you try to scroll to the 0th (first) element when there are no items in the array, then it should crash.
I agree, but when it is on automatic scroll and you remove items from the array, then it shouldn't crash.
The original code seems correct to me, if you try to scroll to the 0th (first) element when there are no items in the array, then it should crash.
it should scroll to maximum index (or do nothing if empty item) instead, making it crash is a very bad idea.