This commit is contained in:
Michael Ong
2023-06-29 12:32:08 +08:00
parent afcee2e5cc
commit 568ae7a3f4

View File

@@ -427,9 +427,11 @@ extension Templates.Collection {
let ypos = scrollView.contentOffset.y + scrollView.safeAreaInsets.top
if let collectionView = scrollView.superview as? Templates.Collection<S, E> {
collectionView
.headerViewContainer?
.displayUpdate(ypos >= -collectionView.safeAreaInsets.top)
if !collectionView.showHairlineBorder {
collectionView
.headerViewContainer?
.displayUpdate(ypos >= -collectionView.safeAreaInsets.top)
}
}
contentRectChanged(