- Use
localizedUppercasefortitleFormatterby default when available. Thanks to canaksoy.
- Added support for using an image as icon. Big thanks to PedroAnibarro1.
- Add support for both Swift 3 and 4 simultaneously.
- Fixed editing rect size when clear button is present to no overlap #148
- Added
titleFontas open var to set another font intitleLabel#141. Thanks to @rabenson and @rubenadlm.
- Made
isLTRLanguageopenso it can actually be set by users #121. - Silence warnings due to
M_PIbeing deprecated in Xcode 8.3 #116. Thanks to @z3bi. - Adds UIAppearance support #118. Thanks to mwfire.
- Fix for RTL issue while editing texts #126. Thanks to @mehrdadmaskull
Change implementation of amimation callbacks to include boolean completed flag.
textfield.setTitleVisible(false, animated: true) {
// Perform callback actions
}textfield.setTitleVisible(false, animated: true) { completed in
// Perform callback actions using completed flag
}See #112
- Added
@discardableResulttobecomeFirstResponderandresignFirstResponder. This silences Xcode warnings about unused results of those functions and brings the implementation closer to the iOS API #98. Thanks to bennokress - Disable
GCC_GENERATE_TEST_COVERAGE_FILESandGCC_INSTRUMENT_PROGRAM_FLOW_ARCSin release configs. This was causing rejections when submitting to Apple when the library is integrated manually or with Carthage #97. Thanks to vytautasgimbutas
- Adds swift 3 support. Thanks to @DenHeadless. See #67
- Bugfix: title was blinking when tapping the textfield.
- Added RTL language support
- Changed the behaviour of
errorMessage, removing unnecessary business logic.- Before this change there was some "hidden" business logic around the resetting of errorMessage, namely:
- Whenever the control was selected by a user, it got cleared (becomeFirstResponder invoked)
- Whenever the text changed, it also got reset (when
textField(textField:,range:string:)was invoked)
- After this change what's different:
- The errorMessage is no longer reset by any text or focus changes. If a developer sets this message, the error will be displayed, until this property is cleared. To implement the previous functionality, just subscribe to the
textField(textField:,range:string:)event on the delegate - As a side effect of this, the workaround of double-invoking
textField(textField:,range:string:)has been removed, fixing the bug raised by this Issue
- The errorMessage is no longer reset by any text or focus changes. If a developer sets this message, the error will be displayed, until this property is cleared. To implement the previous functionality, just subscribe to the
- Before this change there was some "hidden" business logic around the resetting of errorMessage, namely:
- Bugfix: setting the error message via the
textField?(shouldChangeCharactersInRange:replacementString:)method is now possible - Added example on how to use the control from Objective C
- Changed the control to inherit from the
UITextFieldclass (previously the control inherited fromUIControl) - The delegate to use with the textfield is now the
UITextFieldDelegate(removed thedelegate:SkyFloatingLabelTextFieldDelegateclass) - Removed
placeHolderLabel,textFieldandhasTextproperties fromSkyFloatingLabelTextFieldclass - Removed
textRectForBounds(bounds: CGRect)andplaceholderLabelRectForBounds(bounds:CGRect)methods fromSkyFloatingLabelTextField - The above methods have been replaced with the
UITextfieldmethodseditingRectForBounds(bounds: CGRect)andplaceholderRectForBounds(bounds: CGRect)onSkyFloatingLabelTextField - Added
placeholderFont,editingOrSelectedproperties toSkyFloatingLabelTextFieldclass
- 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.
- Added the hideKeyboardWhenSelected property
- Bugfix: When invoking becomeFirstResponder on a textField that was not yet visible, the keyboard did not show up.
- Updated the description of the pod
- Added support for Swift package manager
- Initial release