Skip to content

Commit d6cfb01

Browse files
authored
Merge pull request #19 from RequestLab/master
Fix placeholder animation glitch
2 parents e74e12a + e837964 commit d6cfb01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TweePlaceholderTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ open class TweePlaceholderTextField: UITextField {
179179
@objc private func minimizePlaceholder() {
180180
enablePlaceholderHeightConstraint()
181181

182-
UIView.animate(withDuration: placeholderDuration, delay: 0, options: [.preferredFramesPerSecond30], animations: {
182+
UIView.animate(withDuration: isEditing ? placeholderDuration : 0, delay: 0, options: [.preferredFramesPerSecond30], animations: {
183183
self.layoutIfNeeded()
184184

185185
switch self.minimizationAnimationType {

0 commit comments

Comments
 (0)