Skip to content
New issue

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

UICollectionViewFlowLayoutBreakForInvalidSizes #43

Open
mrhaxic opened this issue Dec 9, 2019 · 1 comment
Open

UICollectionViewFlowLayoutBreakForInvalidSizes #43

mrhaxic opened this issue Dec 9, 2019 · 1 comment

Comments

@mrhaxic
Copy link

mrhaxic commented Dec 9, 2019

Hello brother,

Long time, hope you are doing well

I got this error, I am trying to catch the issue but with no result, do you have any idea?

The relevant UICollectionViewFlowLayout instance is <UICollectionViewFlowLayout: 0x7fcf1e4ab300>, and it is attached to <UICollectionView: 0x7fcf20a27000; frame = (0 0; 375 812); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x600000651790>; layer = <CALayer: 0x60000043f960>; contentOffset: {0, 0}; contentSize: {0, 0}; adjustedContentInset: {0, 0, 34, 0}> collection view layout: <UICollectionViewFlowLayout: 0x7fcf1e4ab300>.

Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.

@mrhaxic
Copy link
Author

mrhaxic commented Dec 9, 2019

Solved by this line of code to be added in viewDidLoad

if (@available(iOS 11.0, *)) {
        pagingView.horizontalCollectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant