From c2a78d6b7b56da7528fb64e13dd8fb8b4dc0fe33 Mon Sep 17 00:00:00 2001 From: Grigory Date: Tue, 11 Apr 2017 16:32:52 +0300 Subject: [PATCH 1/2] animation fixed --- UIAnimatedTextField/Source/UIAnimatedTextField.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 From 1d9541158e83515f74da3726f869be01d37e4e06 Mon Sep 17 00:00:00 2001 From: Grigory Date: Tue, 11 Apr 2017 16:34:38 +0300 Subject: [PATCH 2/2] new version --- UIAnimatedTextField.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UIAnimatedTextField.podspec b/UIAnimatedTextField.podspec index f43096a..bdbb334 100644 --- a/UIAnimatedTextField.podspec +++ b/UIAnimatedTextField.podspec @@ -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.