A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
@discardableResult
to becomeFirstResponder
and resignFirstResponder
. This silences Xcode warnings about unused results of those functions and brings the implementation closer to the iOS API #98. Thanks to bennokress
GCC_GENERATE_TEST_COVERAGE_FILES
and GCC_INSTRUMENT_PROGRAM_FLOW_ARCS
in release configs. This was causing rejections when submitting to Apple when the library is integrated manually or with Carthage #97. Thanks to vytautasgimbutas
The tag pointed to in .podspec was not updated in the 1.3 release causing it to still point to 1.2.1 instead of 1.3. This release fixes that and correctly points the podspec to the right git tag.
Bugfix: title was blinking when tapping the textfield.
errorMessage
, removing unnecessary business logic.
textField(textField:,range:string:)
was invoked)textField(textField:,range:string:)
event on the delegatetextField(textField:,range:string:)
has been removed, fixing the bug raised by this Issue
textField?(shouldChangeCharactersInRange:replacementString:)
method is now possibleUITextField
class (previously the control inherited from UIControl
)UITextFieldDelegate
(removed the delegate:SkyFloatingLabelTextFieldDelegate
class)placeHolderLabel
, textField
and hasText
properties from SkyFloatingLabelTextField
classtextRectForBounds(bounds: CGRect)
and placeholderLabelRectForBounds(bounds:CGRect)
methods from SkyFloatingLabelTextField
UITextfield
methods editingRectForBounds(bounds: CGRect)
and placeholderRectForBounds(bounds: CGRect)
on SkyFloatingLabelTextField
placeholderFont
, editingOrSelected
properties to SkyFloatingLabelTextField
classRemoved 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.