FSPagerView icon indicating copy to clipboard operation
FSPagerView copied to clipboard

selectItem error!

Open ChoshimWy opened this issue 6 months ago • 2 comments

Calling selectItem immediately after reloadData will crash

Thread 1: "Attempted to scroll the collection view to an out-of-bounds item (4) when there are only 0 items in section -1. Collection view: <FSPagerViewExample.FSPagerCollectionView: 0x10380ea00; baseClass = UICollectionView; frame = (0 0; 0 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280105a40>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x280fcb7e0>; contentOffset: {0, 0}; contentSize: {0, 0}; adjustedContentInset: {0, 0, 0, 0}; layout: <FSPagerViewExample.FSPagerViewLayout: 0x102b04a90>; dataSource: <FSPagerViewExample.FSPagerView: 0x102b0e560; frame = (0 70; 1080 556); autoresize = RM+BM; layer = <CALayer: 0x280fcb440>>>."

ChoshimWy avatar Jan 05 '24 07:01 ChoshimWy

Can you provide steps to re-produce?

ParmarKrishna avatar Apr 04 '24 11:04 ParmarKrishna