Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit 0991e4f

Browse files
author
Antonino Francesco Musolino
committed
fix the maintainPosition modifier, that doesn't set the given value
1 parent 83dcf83 commit 0991e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ASCollectionView/ASCollectionView+Modifiers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public extension ASCollectionView
129129
func shouldAttemptToMaintainScrollPositionOnOrientationChange(maintainPosition: Bool) -> Self
130130
{
131131
var this = self
132-
this.maintainScrollPositionOnOrientationChange = true
132+
this.maintainScrollPositionOnOrientationChange = maintainPosition
133133
return this
134134
}
135135

0 commit comments

Comments
 (0)