Update README
This commit is contained in:
parent
fcaa1a9c19
commit
d1fe7264e5
12
README.md
12
README.md
|
@ -32,14 +32,16 @@ Once done, you can call `setAnimatableImage(named:)` or
|
||||||
let imageView = UIImageView(...)
|
let imageView = UIImageView(...)
|
||||||
|
|
||||||
imageView.setAnimatableImage(named: "computer-kid.gif")
|
imageView.setAnimatableImage(named: "computer-kid.gif")
|
||||||
// or
|
// imageView.setAnimatableImage(data: NSData(...))
|
||||||
imageView.setAnimatableImage(data: NSData(...))
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You can start/stop the animation using `UIImageView`'s `startAnimating()` and
|
The image view will not start animating until you call `startAnimating()`
|
||||||
`stopAnimating()`.
|
on it. You can stop the animation anytime using `stopAnimating()`, and resume
|
||||||
|
it using `startAnimating()`.
|
||||||
|
|
||||||
You can find a demo app in this [branch](https://github.com/kaishin/gifu/tree/demo) (requires Xcode 6).
|
The `isAnimating()` method returns the current animation state of the view.
|
||||||
|
|
||||||
|
For an example, check out the demo app [here](https://github.com/kaishin/gifu/tree/demo) (requires Xcode 6).
|
||||||
|
|
||||||
<img src="https://raw.githubusercontent.com/kaishin/gifu/demo/demo.gif" width="300" />
|
<img src="https://raw.githubusercontent.com/kaishin/gifu/demo/demo.gif" width="300" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue