Fix bug with animation

This commit is contained in:
Igor Kislyuk 2017-11-20 17:48:55 +03:00
parent 9dea74461e
commit 9bb955a4fe
1 changed files with 7 additions and 2 deletions

View File

@ -349,8 +349,13 @@ open class UIAnimatedTextField: UIView {
return return
} }
if strongSelf.isLeftTextAlignment {
strongSelf.placeholderLabel.transform = strongSelf.placeholderLabelTransform(state: state) strongSelf.placeholderLabel.transform = strongSelf.placeholderLabelTransform(state: state)
strongSelf.placeholderLabel.frame = strongSelf.placeholderLabelFrame(state: state) strongSelf.placeholderLabel.frame = strongSelf.placeholderLabelFrame(state: state)
} else {
strongSelf.placeholderLabel.frame = strongSelf.placeholderLabelFrame(state: state)
strongSelf.placeholderLabel.transform = strongSelf.placeholderLabelTransform(state: state)
}
switch state { switch state {
case .placeholder: case .placeholder: