We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad5bd2 commit e158406Copy full SHA for e158406
MagazineLayout/Public/MagazineLayout.swift
@@ -1298,7 +1298,8 @@ public final class MagazineLayout: UICollectionViewLayout {
1298
// When scrolling up, only calculate a target content offset based on visible, already-sized
1299
// cells. Otherwise, scrolling will be jumpy.
1300
modelState.isItemHeightSettled(indexPath: $0.elementLocation.indexPath)
1301
- }
+ } ?? visibleItemLocationFramePairs.first // fallback to the first item if we can't find one with a settled height
1302
+
1303
let lastVisibleItemLocationFramePair = visibleItemLocationFramePairs.last
1304
1305
guard
0 commit comments