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

Commit d920a10

Browse files
Revert "Add dodge keyboard modifier (#179)" (#197)
This reverts commit 4d1bb3f.
1 parent 4d1bb3f commit d920a10

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Sources/ASCollectionView/ASCollectionView+Modifiers.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,9 @@ public extension ASCollectionView
129129
func shouldAttemptToMaintainScrollPositionOnOrientationChange(maintainPosition: Bool) -> Self
130130
{
131131
var this = self
132-
this.maintainScrollPositionOnOrientationChange = maintainPosition
132+
this.maintainScrollPositionOnOrientationChange = true
133133
return this
134134
}
135-
136-
/// Set whether the ASCollectionView should scroll the collection view in order to keep the current input field visible when the system keyboard appears.
137-
/// The default value is `true`
138-
func shouldAvoidKeyboard(_ avoidKeyboard: Bool = true) -> Self {
139-
var this = self
140-
this.dodgeKeyboard = avoidKeyboard
141-
return this
142-
}
143135
}
144136

145137
// MARK: PUBLIC layout modifier functions

0 commit comments

Comments
 (0)