Skip to content

Commit

Permalink
master: Release 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ams-twelker committed Feb 11, 2019
1 parent b9ad7e4 commit 469a611
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
## 0.6.0

### Changed
- Replaced `horizontalTextPadding` and `verticalTextPadding` with `textPadding` of type `UIEdgeInsets` (API breaking change). Values can be set in IB.
Expand Down
2 changes: 1 addition & 1 deletion RAGTextField.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RAGTextField'
s.version = '0.5.0'
s.version = '0.6.0'
s.summary = 'Subclass of UITextField featuring a floating placeholder and a hint label.'
s.description = 'Adds a floating placeholder to the regular UITextField. Moreover, adds an optional hint or error label to the text field. Easy to work with in both storyboards and code. Written in Swift 3.'
s.homepage = 'https://github.com/raginmari/RAGTextField'
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,19 @@ Add a view to the background of the text by assigning an arbitrary view to the `

These are the different ways you can **customize the appearance** of the text background view.

- Use the `horizontalTextPadding` property to apply padding to the left and right of the text. The padding expands the text background view horizontally.
- Use the `verticalTextPadding` property to apply padding to the top (between the text and the placeholder) and bottom (between the text and the hint) of the text. The padding expands the text background view vertically.
- Use the `textPadding` property to apply padding to the text. The padding expands the text background view. By default, the padding is `.zero`.

#### The underline view

Use the class `UnderlineView` to draw an underline below the text. The line can be colored and animated. Assign an instance of the class to the `textBackgroundView` property of the text field. The animation of the line has to be triggered manually, for example from a `UITextFieldDelegate` implementation. The example project uses the unterline view.
Use the class `UnderlineView` to draw an **animated underline** below the text. Assign an instance of the class to the `textBackgroundView` property of the text field. The animation of the line has to be triggered manually, for example from a `UITextFieldDelegate` implementation. The example project uses the unterline view.

## Known issues

These are known or possible issues with `RAGTextField`:

- The `attributedText` property of UITextField *may* not be supported.
- The `attributedPlaceholder` of UITextField is not supported.
- The `borderStyle` property should be `.none`. Others *may* not be supported.
- The `borderStyle` property should be `.none`.

These issues will hopefully be addressed in future updates.

Expand Down

0 comments on commit 469a611

Please sign in to comment.