Fix bug with animation
This commit is contained in:
parent
9dea74461e
commit
9bb955a4fe
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue