Skip to content

Commit

Permalink
README enhancements around animated images
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGorman committed May 14, 2018
1 parent 0191791 commit f447c00
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,19 @@ let image = UIImage(gifName: "animated.gif")
let agrume = Agrume(image: image)
agrume.display(from: self)

// Or gif using data:

let image = UIImage(gifData: data)
let agrume = Agrume(image: image)

// Or multiple images:

let images = [UIImage(gifName: "animated.gif"), UIImage(named: "foo.png")] // You can pass both animated and regular images at the same time
let agrume = Agrume(images: images)

```

Remote animated gifs (i.e. using the url or urls initializer) are supported. Agrume does the image type detection and displays them properly.
Remote animated gifs (i.e. using the url or urls initializer) are supported. Agrume does the image type detection and displays them properly. If using Agrume from a custom `UIImageView` you may need to rebuild the `UIImage` using the original data to preserve animation vs. using the `UIImage` instance from the image view.

### Custom Download Handler

Expand Down

0 comments on commit f447c00

Please sign in to comment.