diff --git a/README.md b/README.md index e1d9cdb..03d5d60 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,16 @@ # UIFloatLabelTextField -### A subclassed UITextField that implements the Float Label UI design pattern. +### A subclassed UITextField that implements the Float Label UI design pattern. ___ ## Note If you are looking for the `UITextView` equivalent of this class, please visit my [UIFloatLabelTextView](http://www.github.com/ArtSabintsev/UIFloatLabelTextView) repository. ## About -In 2013, [**Matt D. Smith**](http://twitter.com/mds) unveiled the **[Float Label](http://www.floatlabel.com)** user interface design pattern. In short, it retains a text field's placeholder above said text field as a *floating label*. This label is brightly colored when the field is active, and dimly colored when a user has finished editing that field. +In 2013, [**Matt D. Smith**](http://twitter.com/mds) unveiled the **[Float Label](http://www.floatlabel.com)** user interface design pattern. In short, it retains a text field's placeholder above said text field as a *floating label*. This label is brightly colored when the field is active, and dimly colored when a user has finished editing that field. ![Sample Gif of Library in Action](http://d13yacurqjgara.cloudfront.net/users/6410/screenshots/1254439/form-animation-_gif_.gif) -Image credit: [Matt D. Smith](http://twitter.com/mds). - -## Changelog (v1.2.1) -- Exposed `horizontalPadding` variable to public interface. +Image credit: [Matt D. Smith](http://twitter.com/mds). ## Features - Works with all view `init` styles @@ -39,7 +36,7 @@ Check out `UIFloatLabelTextField.h` for a full list of editable properties. Also I want to credit [**Jared Verdi**](http://twitter.com/jverdi) for developing the first iOS implementation of this pattern in his [**JVFloatLabeledTextField**](https://github.com/jverdi/JVFloatLabeledTextField) project. I used it as a reference to make this version, but executed most aspects differently. I also added many other features that I personally needed, and plan on continuing to enhance this library over time. ## Created and maintained by -[Arthur Ariel Sabintsev](http://www.sabintsev.com/) +[Arthur Ariel Sabintsev](http://www.sabintsev.com/) ## License Please refer to the **LICENSE** file. diff --git a/UIFloatLabelSampleApp/UIFloatLabelSampleApp.xcodeproj/project.pbxproj b/UIFloatLabelSampleApp/UIFloatLabelSampleApp.xcodeproj/project.pbxproj index 3166e53..3193932 100644 --- a/UIFloatLabelSampleApp/UIFloatLabelSampleApp.xcodeproj/project.pbxproj +++ b/UIFloatLabelSampleApp/UIFloatLabelSampleApp.xcodeproj/project.pbxproj @@ -138,7 +138,7 @@ 8E648D5A18D2A4FE00A892FB /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0510; + LastUpgradeCheck = 0710; ORGANIZATIONNAME = "Arthur Ariel Sabintsev"; }; buildConfigurationList = 8E648D5D18D2A4FE00A892FB /* Build configuration list for PBXProject "UIFloatLabelSampleApp" */; @@ -215,6 +215,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; @@ -276,6 +277,7 @@ GCC_PREFIX_HEADER = "UIFloatLabelSampleApp/UIFloatLabelSampleApp-Prefix.pch"; INFOPLIST_FILE = "UIFloatLabelSampleApp/UIFloatLabelSampleApp-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 8.1; + PRODUCT_BUNDLE_IDENTIFIER = "com.sabintsev.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; @@ -290,6 +292,7 @@ GCC_PREFIX_HEADER = "UIFloatLabelSampleApp/UIFloatLabelSampleApp-Prefix.pch"; INFOPLIST_FILE = "UIFloatLabelSampleApp/UIFloatLabelSampleApp-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 8.1; + PRODUCT_BUNDLE_IDENTIFIER = "com.sabintsev.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; diff --git a/UIFloatLabelSampleApp/UIFloatLabelSampleApp/UIFloatLabelSampleApp-Info.plist b/UIFloatLabelSampleApp/UIFloatLabelSampleApp/UIFloatLabelSampleApp-Info.plist index 0de91f9..3eb7025 100644 --- a/UIFloatLabelSampleApp/UIFloatLabelSampleApp/UIFloatLabelSampleApp-Info.plist +++ b/UIFloatLabelSampleApp/UIFloatLabelSampleApp/UIFloatLabelSampleApp-Info.plist @@ -9,7 +9,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier - com.sabintsev.${PRODUCT_NAME:rfc1034identifier} + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/UIFloatLabelTextField.podspec b/UIFloatLabelTextField.podspec index 00a788a..f1a9fa7 100644 --- a/UIFloatLabelTextField.podspec +++ b/UIFloatLabelTextField.podspec @@ -1,10 +1,10 @@ Pod::Spec.new do |s| s.name = "UIFloatLabelTextField" - s.version = "1.2.1" + s.version = "1.2.2" s.summary = "A subclassed UITextField that implements the Float Label UI design pattern." s.homepage = "https://github.com/ArtSabintsev/UIFloatLabelTextField" s.platform = :ios, '7.0' - s.source = { :git => "https://github.com/ArtSabintsev/UIFloatLabelTextField.git", :tag => "1.2.1" } + s.source = { :git => "https://github.com/ArtSabintsev/UIFloatLabelTextField.git", :tag => s.version.to_s } s.source_files = 'UIFloatLabelTextField/*.{h,m}' s.requires_arc = true s.social_media_url = 'https://twitter.com/ArtSabintsev' diff --git a/UIFloatLabelTextField/UIFloatLabelTextField.m b/UIFloatLabelTextField/UIFloatLabelTextField.m index 1035fa3..d73cf46 100755 --- a/UIFloatLabelTextField/UIFloatLabelTextField.m +++ b/UIFloatLabelTextField/UIFloatLabelTextField.m @@ -317,6 +317,7 @@ - (void)setFloatLabelFont:(UIFont *)floatLabelFont { _floatLabelFont = floatLabelFont; _floatLabel.font = _floatLabelFont; + [_floatLabel sizeToFit]; } #pragma mark - UIView (Override)