Closed akolov closed 3 years ago
Thank you for the PR š I'm glad I'd left that comment there or would've assumed it was a mistake on my half. Sounds like the behaviour has changed - I'd just like to check backward compatibility before merging, and will hopefully have a chance later this week. Might need to check iOS version to avoid breaking behaviour on non-updated devices š
Describe the bug
onReachedBoundary
is not called ifedgesIgnoringSafeArea
is set, however not usingedgesIgnoringSafeArea
causes large navigation title not to collapse properly.I believe it's related to this line of code:https://github.com/apptekstudios/ASCollectionView/blob/88a0ecfaafe9128fdd59e595d55c389afe1c5999/Sources/ASCollectionView/UIKitExtensions/UIScrollView%2BConvenience.swift#L11
It mentions that SwiftUI is using negative adjusted top inset, however for me it's positive at 88.0. Which results in this condition to fail: https://github.com/apptekstudios/ASCollectionView/blob/e71eda854855629123cfb5f6d59562ea39b8f2a8/Sources/ASCollectionView/Implementation/ASCollectionView.swift#L861 because
scrollView.contentSizePlusInsets.height
is less thanscrollView.frame.size.height
:Maybe this behaviour has been changed by iOS 13.5, since boundary is correctly reached when I change to use
adjustedContentInset.top
?To Reproduce Steps to reproduce the behaviour:
Expected behaviour
onReachedBoundary
is called regardless whetheredgesIgnoringSafeArea
is setXcode Version:
Simulator, Device, Both?