Skip to content

Commit 81ac60b

Browse files
author
Raul Riera
committed
Fix a bug in the Hoshi placeholder alpha
1 parent c0693f9 commit 81ac60b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

TextFieldEffects/TextFieldEffects/HoshiTextField.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ import UIKit
105105

106106
layoutPlaceholderInTextRect()
107107
placeholderLabel.frame.origin = activePlaceholderPoint
108-
108+
109+
UIView.animate(withDuration: 0.4, animations: {
110+
self.placeholderLabel.alpha = 1.0
111+
})
112+
109113
activeBorderLayer.frame = rectForBorder(borderThickness.active, isFilled: true)
110114
}
111115

0 commit comments

Comments
 (0)