From a9964c62e9e4ffedacf5d7e6994d98c704fb665d Mon Sep 17 00:00:00 2001 From: Gergely Orosz Date: Mon, 4 Apr 2016 12:37:38 +0100 Subject: [PATCH] Updating package to 1.1 --- CHANGELOG.md | 9 +++++++++ SkyFloatingLabelTextField.podspec | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd70540..21d3f0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +v1.1 +---------- +* Changed the control to inherit from the `UITextField` class (previously the control inherited from `UIControl`) +* The delegate to use with the textfield is now the `UITextFieldDelegate` (removed the `delegate:SkyFloatingLabelTextFieldDelegate` class) +* Removed `placeHolderLabel`, `textField` and `hasText` properties from `SkyFloatingLabelTextField` class +* Removed `textRectForBounds(bounds: CGRect)` and `placeholderLabelRectForBounds(bounds:CGRect)` methods from `SkyFloatingLabelTextField` +* The above methods have been replaced with the `UITextfield` methods `editingRectForBounds(bounds: CGRect)` and `placeholderRectForBounds(bounds: CGRect)` on `SkyFloatingLabelTextField` +* Added `placeholderFont`, `editingOrSelected` properties to `SkyFloatingLabelTextField` class + v1.0.6 ---------- * Removed the hideKeyboardWhenSelected property. This property seemed too specific. To hide the keyboard when selecting a field, an alternative workaround is to set the textField.inputView property to an empty view. diff --git a/SkyFloatingLabelTextField.podspec b/SkyFloatingLabelTextField.podspec index f626058..657f236 100644 --- a/SkyFloatingLabelTextField.podspec +++ b/SkyFloatingLabelTextField.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = "SkyFloatingLabelTextField" - s.version = "1.0.6" + s.version = "1.1" s.summary = "A beautiful, flexible and customizable textfield that minimizes space when displaying additional context." s.homepage = "https://github.com/Skyscanner/SkyFloatingLabelTextField" s.license = { :type => "Apache 2.0", :file => "LICENSE.md" } s.authors = "Daniel Langh, Gergely Orosz, Raimon Lapuente" s.ios.deployment_target = "8.0" - s.source = { :git => "https://github.com/Skyscanner/SkyFloatingLabelTextField.git", :tag => "v1.0.6" } + s.source = { :git => "https://github.com/Skyscanner/SkyFloatingLabelTextField.git", :tag => "v1.1" } s.source_files = 'Sources/*.swift' end