Merge pull request #7 from TouchInstinct/leftAlignmentFix

Left alignment fix
This commit is contained in:
Grigory 2017-04-11 16:36:33 +03:00 committed by GitHub
commit 11c69147ed
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'UIAnimatedTextField'
s.version = '0.1.10'
s.version = '0.1.11'
s.summary = 'UITextField with animated placeholder'
s.description = <<-DESC
This custom control can be used as a replacement for UITextField. It comes with 5 different text types: simple, password, url, tappable, date.

View File

@ -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