Update README

This commit is contained in:
Reda Lemeden 2014-11-10 23:11:43 +01:00
parent 6c09af38db
commit 28b41eddfd
1 changed files with 6 additions and 4 deletions

View File

@ -34,11 +34,13 @@ imageView.setAnimatableImage(named: "computer-kid.gif")
// imageView.setAnimatableImage(data: NSData(...))
```
The image view will not start animating until you call `startAnimating()`
on it. You can stop the animation anytime using `stopAnimating()`, and resume
it using `startAnimating()`.
The image view will not start animating until you call `startAnimatingGIF()`
on it. You can stop the animation anytime using `stopAnimatingGIF()`, and resume
it using `startAnimatingGIF()`. These methods will fallback to UIKit's `startAnimating()` and `stopAnimating()`
if the image view has no animatable image.
The `isAnimating()` method returns the current animation state of the view.
Likewise, the `isAnimatingGIF()` method returns the current animation state of the view if it has an animatable image,
or UIKit's `isAnimating()` otherwise.
#### Demo App