Skip to content

Commit 4f26a29

Browse files
authored
Merge pull request raulriera#165 from liuhaoeee/master
adjust animation of placeholder to iOS12 new feature:AutoFill
2 parents 6eb62bc + 29f7bff commit 4f26a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TextFieldEffects/TextFieldEffects/TextFieldEffects.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ open class TextFieldEffects : UITextField {
9292

9393
override open var text: String? {
9494
didSet {
95-
if let text = text, text.isNotEmpty {
95+
if let text = text, text.isNotEmpty || isFirstResponder {
9696
animateViewsForTextEntry()
9797
} else {
9898
animateViewsForTextDisplay()

0 commit comments

Comments
 (0)