From 35a1313f32850b7990610466ef7b02126323b5a7 Mon Sep 17 00:00:00 2001 From: Reda Lemeden Date: Mon, 8 Sep 2014 00:36:05 +0200 Subject: [PATCH] use Github-hosted assets --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 06da060..4f60248 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ - + Adds animated GIF support to UIKit. For the Japanese prefecture, click [here](https://goo.gl/maps/CCeAc). #### Why? + Because Apple's `+animatedImage*` sucks, and the few third party implementations that got it right (see [Credits](#credits)) still require you to use a `UIImageView` subclass. @@ -17,8 +18,7 @@ The figure below summarizes how this works in practice. Given an image containing 10 frames, Gifu will load the current frame (red), pre-load the next two frames (orange), and nullify all the other frames to free up memory (gray): - - + #### Usage @@ -36,6 +36,8 @@ imageView.setAnimatableImage(named: "computer-kid.gif") imageView.setAnimatableImage(data: NSData(...)) ``` +You can find a demo app [here](https://github.com/kaishin/gifu-demo). + #### To-do The usual suspects: