diff --git a/UIAnimatedTextField/Source/UIAnimatedTextField.swift b/UIAnimatedTextField/Source/UIAnimatedTextField.swift index ae8f733..cc2a58a 100644 --- a/UIAnimatedTextField/Source/UIAnimatedTextField.swift +++ b/UIAnimatedTextField/Source/UIAnimatedTextField.swift @@ -341,9 +341,10 @@ open class UIAnimatedTextField: UIView { guard let strongSelf = self else { return } - - strongSelf.placeholderLabel.frame = strongSelf.placeholderLabelFrame(state: state) + strongSelf.placeholderLabel.transform = strongSelf.placeholderLabelTransform(state: state) + strongSelf.placeholderLabel.frame = strongSelf.placeholderLabelFrame(state: state) + switch state { case .placeholder: strongSelf.placeholderLabel.textColor = strongSelf.placeholderBottomColor