Skip to content

Commit

Permalink
Update MagazineLayout/Public/MagazineLayout.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Bryan Keller <[email protected]>
  • Loading branch information
elfredpagan and bryankeller authored Mar 22, 2024
1 parent 36effa0 commit a2fe2a0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions MagazineLayout/Public/MagazineLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,6 @@ public final class MagazineLayout: UICollectionViewLayout {
// If our layout direction is bottom to top we want to adjust scroll position relative to the
// bottom
if case .bottomToTop = verticalLayoutDirection {
let additionalOffsetAdjustment: CGFloat
if #available(iOS 11.0, tvOS 11.0, *) {
additionalOffsetAdjustment = currentCollectionView.adjustedContentInset.bottom
} else {
additionalOffsetAdjustment = 0.0
}
invalidationContext.contentOffsetAdjustment = CGPoint(
x: 0.0,
y: currentCollectionView.bounds.height - newBounds.height + additionalOffsetAdjustment)
Expand Down

0 comments on commit a2fe2a0

Please sign in to comment.