From a2fe2a0c4040ba993433c8a3698641b7b87e6c24 Mon Sep 17 00:00:00 2001 From: Elfred Pagan Date: Fri, 22 Mar 2024 13:39:02 -0500 Subject: [PATCH] Update MagazineLayout/Public/MagazineLayout.swift Co-authored-by: Bryan Keller --- MagazineLayout/Public/MagazineLayout.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/MagazineLayout/Public/MagazineLayout.swift b/MagazineLayout/Public/MagazineLayout.swift index c193252..a9f9bfe 100755 --- a/MagazineLayout/Public/MagazineLayout.swift +++ b/MagazineLayout/Public/MagazineLayout.swift @@ -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)