All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- Add support for Swift Package Manager
- Add placeholder mode "scalesAlways" which always transforms the placeholder
Updated to Swift 5.
- Minor bugfix
- Added support of multi-line hints.
- Added property
transformedPlaceholderColorthat sets the placeholder color when the text field is being edited and the placeholder is in its floating position. - Added property
layoutAlwaysIncludesHintthat always keeps the hint label in the layout even if thehintisnil.
- Fixed the resizing of the placeholder when its text or font are changed.
After updating to this version, you may have to adjust the placeholderMode values of your text fields because the default placeholder mode has changed.
- Added the
textFieldproperty to theUnderlineView. If notnil, the underline updates its appearance in accordance with the editing state of the text field.
- The default placeholder mode has been changed from "when not empty" to "when editing".
- Fixed placeholder animation on iOS 9
- Implemented a much more helpful example project for the pod. Please "try".
- The horizontal text position would not be updated if the left or right views of the text field were shown or hidden
- View performs a layout pass when the text padding mode is set
- View no longer animates the placeholder when the text propert is set
- The height of the background line of the
UnderlineViewis always 1 pixel wide. The propertyforegroundLineWidth(formerly "lineWidth") affects the height of the foreground line only (API breaking change).
- Fixed default placeholder color
- Fixed initial placeholder text alignment
- Added property
textPaddingMode. Used to apply thetextPaddingto just the text, or in addition to that to the placeholder, the hint or both.
- Fixed horizontal intrinsic content size
- Replaced
horizontalTextPaddingandverticalTextPaddingwithtextPaddingof typeUIEdgeInsets(API breaking change). Values can be set in IB.
- Added optional vertical
hintOffsetof the hint label to the bottom of the text - Added Carthage support
Pretty much redid the whole thing. There should be no API-breaking changes.
- Added support for right-to-left languages
- Added support for the left and right views
- Added
UnderlineViewthat can be used with the text view
- Updated to Swift 4
- Improved handling of text alignments
- Improved documentation
- Bugfixes