We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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>>>."
The text was updated successfully, but these errors were encountered:
Can you provide steps to re-produce?
Sorry, something went wrong.
Hi, I have also encountered this issue, refer to the following steps to reproduce the problem.
override func viewDidLoad() { super.viewDidLoad() pagerView.reloadData() pagerView.selectItem(at: 2, animated: false) }
No branches or pull requests
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>>>."
The text was updated successfully, but these errors were encountered: