HHHorizontalPagingView
HHHorizontalPagingView copied to clipboard
UICollectionViewFlowLayoutBreakForInvalidSizes
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.
Solved by this line of code to be added in viewDidLoad
if (@available(iOS 11.0, *)) {
pagingView.horizontalCollectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}