Merge pull request #7 from TouchInstinct/leftAlignmentFix
Left alignment fix
This commit is contained in:
commit
11c69147ed
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue