Skip to content

Commit

Permalink
Change var to uninitialized let (#123)
Browse files Browse the repository at this point in the history
Co-authored-by: Elfred Pagan <elfred.pagan@airbnb.com>
  • Loading branch information
elfredpagan and Elfred Pagan committed Mar 6, 2024
1 parent e1b983f commit 69ada51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MagazineLayout/Public/MagazineLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public final class MagazineLayout: UICollectionViewLayout {
// When using the topToBottom layout direction, we only want to invalidate the layout when the
// widths differ. When using the bottomToTop layout direction, we want to invalidate on any
// size change due to the requirement of needing to preserve scroll position from the bottom
var shouldInvalidateDueToSize = false
let shouldInvalidateDueToSize: Bool
switch verticalLayoutDirection {
case .topToBottom:
shouldInvalidateDueToSize = !currentCollectionView.bounds.size.width.isEqual(
Expand Down

0 comments on commit 69ada51

Please sign in to comment.