Commit Graph

115 Commits

Author SHA1 Message Date
Reda Lemeden ce384ae22a Fix array index out of range bug
Closes #25
2015-10-22 20:49:31 +02:00
Reda Lemeden ebaf223f71 Organize source files into groups 2015-10-22 20:11:31 +02:00
Reda Lemeden e14b53193f Add Swift 2.0 support
One step closer to 1.0. Changes include:

- Refactor the API
- Make image source non-optional
- Use submodule for Runes dependency
- Add specs
- Remove Runes framework dependency
2015-10-22 19:14:35 +02:00
Tony DiPasquale e979c72bf8 Bump version to 0.10.0 2015-06-05 11:25:14 -04:00
Tony DiPasquale f2fb5c5e40 Add a toggle for both gifs 2015-06-05 11:22:23 -04:00
Tony DiPasquale b3da34a186 Add a second index to track preload position
Using one index was causing the end of gifs to be cut off if the number
of frames wasn't a multiple of the preload size. This creates a second
index to track the preload position and the display frame position.
2015-06-05 11:22:23 -04:00
Tony DiPasquale 6a22c41aa1 Invalidate display link 2015-06-05 11:22:23 -04:00
Tony DiPasquale a2894d59cd Remove delegate 2015-06-05 11:22:22 -04:00
Tony DiPasquale a885c995e9 Bring back progressive loading
Loading the all the frames of a GIF at once into memory helped cut down
on the memory footprint because we could eliminate the need to hold onto
the source image. However, we see this break down when there are too
many frames. The "almost_nailed_it.gif" GIF has 545 frames and would
crash the app around 130 loaded. This brings back progressive loading
with a max frame count of 50 to prevent this issue.
2015-06-05 11:22:22 -04:00
Tony DiPasquale 1c833b16f4 Update Runes dependency 2015-06-02 11:28:07 -04:00
Tony DiPasquale e44b739508 Bump version to 0.9.1 2015-04-24 16:38:30 -04:00
Tony DiPasquale ccf049f87a Resize the GIF with aspect ratio
We can use the contentMode of the UIImageView to resize the GIF keeping
the aspect ratio if the content mode is set to do so.
2015-04-24 16:38:30 -04:00
Tony DiPasquale 87517a5b8b Cleanup demo storyboard and constraints 2015-04-23 18:55:35 -04:00
Tony DiPasquale 2405429c12 Cleanup demo project and runes references 2015-04-23 18:37:05 -04:00
Tony DiPasquale a9963e3b01 Add aspect fill and fit as separate functions 2015-04-23 18:30:57 -04:00
Tony DiPasquale f57f725147 Resize image keeping aspect ratio 2015-04-23 18:15:19 -04:00
Tony DiPasquale 064712bb8f Update to Swift 1.2 compatibility 2015-04-17 11:12:00 -04:00
Reda Lemeden 6c744b726c Make demo run on Xcode 6.3 2015-02-10 20:07:54 +01:00
Reda Lemeden 4ada52c333 Add inline docs 2015-01-24 00:59:49 +01:00
Reda Lemeden b15e7e3399 Use image view subclass 2015-01-24 00:52:15 +01:00
Reda Lemeden d6a7b29aaf Use Runes for functional operators 2015-01-20 20:44:15 +01:00
Reda Lemeden c51f0f7cbd Fix intrinsic size bug
- Animated image class always returned `CGRectZero` as intrinsic content size
- Fixes #7
2014-12-21 10:32:07 +00:00
Reda Lemeden b87464f542 Bump to v0.8 2014-12-15 10:27:57 +01:00
Reda Lemeden 2951bb60a1 Refactor image source helpers 2014-12-13 11:35:00 +01:00
Reda Lemeden 8013faea87 Update README to reflect API changes 2014-12-12 23:29:10 +01:00
Reda Lemeden 0e9cf2294d Add new lines 2014-12-12 23:07:28 +01:00
Reda Lemeden 1be0ce954f Add missing line 2014-12-12 22:49:22 +01:00
Reda Lemeden 41f6185043 Increase verbosity 2014-12-12 22:49:15 +01:00
Tony DiPasquale 534a9b5f29 Remove preloading functionality and clean up
- Closes #6
2014-12-12 22:30:52 +01:00
Reda Lemeden ae615d4577 Bump to 0.7.1 2014-12-10 21:57:24 +01:00
Tony DiPasquale ecab3ad2a5 Fix project structure to align with folders
Closes #5
2014-12-10 21:55:44 +01:00
Reda Lemeden d595317583 Update install instructions 2014-12-08 23:22:46 +01:00
Reda Lemeden fd21d17939 Rename source folder 2014-12-08 23:16:41 +01:00
Reda Lemeden 026e8876ec Import framework in demo 2014-12-08 23:11:24 +01:00
Reda Lemeden ecc7a62251 Separate demo and framework 2014-12-08 22:23:14 +01:00
Reda Lemeden 28b41eddfd Update README 2014-11-10 23:11:43 +01:00
Reda Lemeden 6c09af38db Add version number as comment 2014-11-10 23:06:21 +01:00
Reda Lemeden 86a43066f4 Rename animation methods to avoid UKit conflicts
Fixes #2
2014-11-10 22:57:37 +01:00
Reda Lemeden 0e48455fe3 Add Demo 2014-11-10 22:12:26 +01:00
delba 4a3816c75f Use NSDictionary - value/objectForKey
- Closes #3, #4
2014-11-10 21:37:55 +01:00
delba a2df318b5e Use NSData - init(contentsOfFile) 2014-11-07 01:03:03 +01:00
Reda Lemeden f07f4267e2 Update README.md 2014-11-05 00:08:07 +01:00
Reda Lemeden c6e31356cd Highlight demo in README 2014-11-04 11:28:43 +01:00
Reda Lemeden 3092dc4795 Use type inference where possible 2014-09-19 10:08:56 +02:00
Reda Lemeden b306f6712f Add some details to README 2014-09-17 12:47:45 +02:00
Reda Lemeden d1fe7264e5 Update README 2014-09-11 23:26:38 +02:00
Reda Lemeden fcaa1a9c19 Disable animation on load 2014-09-11 23:17:43 +02:00
Reda Lemeden da998e325d Fix indent in the README 2014-09-10 21:44:28 +02:00
Reda Lemeden 82e1cc3ce0 Update LICENSE & README 2014-09-10 21:41:13 +02:00
Reda Lemeden 1cd8f61471 Update README 2014-09-10 21:36:06 +02:00