Skip to content

Commit

Permalink
bumped version to 0.2.5; added documentation for completion block;
Browse files Browse the repository at this point in the history
  • Loading branch information
TomKnig committed Nov 11, 2014
1 parent 6466a50 commit 3bb1a66
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ it, simply add the following line to your Podfile:

```ruby
platform :ios, '7.0'
pod "TOMSMorphingLabel", "~> 0.2.3"
pod "TOMSMorphingLabel", "~> 0.2.5"
```

## Usage
Expand All @@ -33,6 +33,14 @@ Setting - and particularly changing - the labels text property will automaticall
label.text = @"Swift";
```

Setting the labels text property using `setText:withCompletionBlock` will morph the labels as well as triggering the completion block when the animation is finished.

```objective-c
[label setText:@"Swift" withCompletionBlock:^{
NSLog(@"label.text is now 'Swift'");
}];
```
Note that the label will execute only one morph transition at a time. If the text value of the label changes during a transition - even if it changes multiple times - the label will invoke a transition to the youngest text value that was set.
## Customization
Expand Down Expand Up @@ -62,6 +70,10 @@ The configureable properties are defined as follows:
## Changelog
#### 0.2.5
* fixed a textColor glitch
* introduced `setText:withCompletionBlock:`
#### 0.2.3
* fixed a bug that caused a crash when setting text to nil
Expand All @@ -85,6 +97,8 @@ The best way to contribute is by submitting a pull request or a [new Github issu
* @andrebraga added support for iOS6 in version 0.2.1
* @stepanhruda added property to disable morphing in version 0.2.2
* @itouch2 fixed a bug that caused a crash when setting text to nil in version 0.2.3
* @waynehartman fixed text color-change glitch in version 0.2.5
* @cyril94440 added `setText:withCompletionBlock:` in version 0.2.5
## Author
Expand Down
2 changes: 1 addition & 1 deletion TOMSMorphingLabel.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "TOMSMorphingLabel"
s.version = "0.2.3"
s.version = "0.2.5"
s.summary = "Configurable morphing transitions between text values of a label."
s.homepage = "https://github.com/TomKnig/TOMSMorphingLabel"
s.license = 'MIT'
Expand Down

0 comments on commit 3bb1a66

Please sign in to comment.