arnauddorgans / InfiniteLayout

Horizontal and Vertical infinite scrolling feature for UICollectionView with Paging, NSProxy delegate, Reactive extension, SectionModel & AnimatableSectionModel support
MIT License
516 stars 63 forks source link

NSLayoutConstraintNumberExceedsLimit #4

Open huynguyen-quoc opened 5 years ago

huynguyen-quoc commented 5 years ago

InfiniteLayout_Example[89608:25311340] This NSLayoutConstraint is being configured with a constant that exceeds internal limits. A smaller value will be substituted, but this problem should be fixed. Break on BOOL _NSLayoutConstraintNumberExceedsLimit(void) to debug. This will be logged only once. This may break in the future.

I found this problem when running example of custom layout

seenoevo commented 5 years ago

@arnauddorgans can you look at this please?

I'm having the same issue in my App, and it's driving me nuts!

hardikihorizon commented 5 years ago

@seenoevo have you found any solution for this. I am also facing the same issue in my app for a custom layout.

clomas commented 5 years ago

I'm not sure how to resolve the issue but I debugged it to this line inInfiniteCollectionView.swift

open override func layoutSubviews() { super.layoutSubviews() <------------------here self.updateLayoutIfNeeded() }