From 0fc39d1ccd3d650512e935b8447570f16ed804c7 Mon Sep 17 00:00:00 2001 From: Garrett Moon Date: Tue, 19 Apr 2016 13:13:06 -0700 Subject: [PATCH] Follow up to animated GIF PR --- AsyncDisplayKit.xcodeproj/project.pbxproj | 6 --- AsyncDisplayKit/ASImageNode+AnimatedImage.h | 15 ------- AsyncDisplayKit/ASImageNode+AnimatedImage.mm | 27 ++++------- AsyncDisplayKit/ASImageNode.h | 18 ++++++++ AsyncDisplayKit/ASImageNode.mm | 1 - AsyncDisplayKit/ASNetworkImageNode.mm | 1 - AsyncDisplayKit/AsyncDisplayKit.h | 1 - AsyncDisplayKit/Details/ASImageProtocols.h | 41 +++++++++++++++++ .../ASImageNode+AnimatedImagePrivate.h | 1 - .../ASAnimatedImage/AppDelegate.m | 45 ------------------- .../ASAnimatedImage/AppDelegate.h | 0 .../AnimatedGIF/ASAnimatedImage/AppDelegate.m | 23 ++++++++++ .../AppIcon.appiconset/Contents.json | 0 .../Base.lproj/LaunchScreen.storyboard | 0 .../Base.lproj/Main.storyboard | 0 .../ASAnimatedImage/Info.plist | 0 .../ASAnimatedImage/ViewController.h | 0 .../ASAnimatedImage/ViewController.m | 5 --- .../ASAnimatedImage/main.m | 0 .../{ASAnimatedImage => AnimatedGIF}/Podfile | 0 .../Sample.xcodeproj/project.pbxproj | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/xcschemes/Sample.xcscheme | 0 .../contents.xcworkspacedata | 0 24 files changed, 91 insertions(+), 93 deletions(-) delete mode 100644 AsyncDisplayKit/ASImageNode+AnimatedImage.h delete mode 100644 examples/ASAnimatedImage/ASAnimatedImage/AppDelegate.m rename examples/{ASAnimatedImage => AnimatedGIF}/ASAnimatedImage/AppDelegate.h (100%) create mode 100644 examples/AnimatedGIF/ASAnimatedImage/AppDelegate.m rename examples/{ASAnimatedImage => AnimatedGIF}/ASAnimatedImage/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/ASAnimatedImage/Base.lproj/LaunchScreen.storyboard (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/ASAnimatedImage/Base.lproj/Main.storyboard (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/ASAnimatedImage/Info.plist (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/ASAnimatedImage/ViewController.h (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/ASAnimatedImage/ViewController.m (87%) rename examples/{ASAnimatedImage => AnimatedGIF}/ASAnimatedImage/main.m (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/Podfile (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/Sample.xcodeproj/project.pbxproj (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/Sample.xcodeproj/xcshareddata/xcschemes/Sample.xcscheme (100%) rename examples/{ASAnimatedImage => AnimatedGIF}/Sample.xcworkspace/contents.xcworkspacedata (100%) diff --git a/AsyncDisplayKit.xcodeproj/project.pbxproj b/AsyncDisplayKit.xcodeproj/project.pbxproj index 5c12f1cac3..cd8d5a071c 100644 --- a/AsyncDisplayKit.xcodeproj/project.pbxproj +++ b/AsyncDisplayKit.xcodeproj/project.pbxproj @@ -251,9 +251,7 @@ 509E68661B3AEDD7009B9150 /* CGRect+ASConvenience.m in Sources */ = {isa = PBXBuildFile; fileRef = 205F0E201B376416007741D0 /* CGRect+ASConvenience.m */; }; 636EA1A41C7FF4EC00EE152F /* NSArray+Diffing.m in Sources */ = {isa = PBXBuildFile; fileRef = DBC452DA1C5BF64600B16017 /* NSArray+Diffing.m */; }; 636EA1A51C7FF4EF00EE152F /* ASDefaultPlayButton.m in Sources */ = {isa = PBXBuildFile; fileRef = AEB7B0191C5962EA00662EF4 /* ASDefaultPlayButton.m */; }; - 68355B301CB5799E001D4E68 /* ASImageNode+AnimatedImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 68355B2D1CB5799E001D4E68 /* ASImageNode+AnimatedImage.h */; settings = {ATTRIBUTES = (Public, ); }; }; 68355B311CB5799E001D4E68 /* ASImageNode+AnimatedImage.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68355B2E1CB5799E001D4E68 /* ASImageNode+AnimatedImage.mm */; }; - 68355B331CB579AD001D4E68 /* ASImageNode+AnimatedImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 68355B2D1CB5799E001D4E68 /* ASImageNode+AnimatedImage.h */; settings = {ATTRIBUTES = (Public, ); }; }; 68355B341CB579B9001D4E68 /* ASImageNode+AnimatedImage.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68355B2E1CB5799E001D4E68 /* ASImageNode+AnimatedImage.mm */; }; 68355B3A1CB57A5A001D4E68 /* ASPINRemoteImageDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 68355B361CB57A5A001D4E68 /* ASPINRemoteImageDownloader.m */; }; 68355B3B1CB57A5A001D4E68 /* ASImageContainerProtocolCategories.h in Headers */ = {isa = PBXBuildFile; fileRef = 68355B371CB57A5A001D4E68 /* ASImageContainerProtocolCategories.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -759,7 +757,6 @@ 4640521B1A3F83C40061C0BA /* ASFlowLayoutController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASFlowLayoutController.h; sourceTree = ""; }; 4640521C1A3F83C40061C0BA /* ASFlowLayoutController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASFlowLayoutController.mm; sourceTree = ""; }; 4640521D1A3F83C40061C0BA /* ASLayoutController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASLayoutController.h; sourceTree = ""; }; - 68355B2D1CB5799E001D4E68 /* ASImageNode+AnimatedImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ASImageNode+AnimatedImage.h"; sourceTree = ""; }; 68355B2E1CB5799E001D4E68 /* ASImageNode+AnimatedImage.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = "ASImageNode+AnimatedImage.mm"; sourceTree = ""; }; 68355B361CB57A5A001D4E68 /* ASPINRemoteImageDownloader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ASPINRemoteImageDownloader.m; sourceTree = ""; }; 68355B371CB57A5A001D4E68 /* ASImageContainerProtocolCategories.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASImageContainerProtocolCategories.h; sourceTree = ""; }; @@ -1048,7 +1045,6 @@ 0587F9BC1A7309ED00AFF0BA /* ASEditableTextNode.mm */, 058D09DD195D050800B7D73C /* ASImageNode.h */, 058D09DE195D050800B7D73C /* ASImageNode.mm */, - 68355B2D1CB5799E001D4E68 /* ASImageNode+AnimatedImage.h */, 68355B2E1CB5799E001D4E68 /* ASImageNode+AnimatedImage.mm */, 0516FA3E1A1563D200B4EBED /* ASMultiplexImageNode.h */, 0516FA3F1A1563D200B4EBED /* ASMultiplexImageNode.mm */, @@ -1536,7 +1532,6 @@ 257754C31BEE458E00737CA5 /* ASTextNodeTypes.h in Headers */, 9C49C36F1B853957000B0DD5 /* ASStackLayoutable.h in Headers */, 69E1006D1CA89CB600D88C1B /* ASEnvironmentInternal.h in Headers */, - 68355B301CB5799E001D4E68 /* ASImageNode+AnimatedImage.h in Headers */, AC21EC101B3D0BF600C8B19A /* ASStackLayoutDefines.h in Headers */, CC7FD9DE1BB5E962005CCB2B /* ASPhotosFrameworkImageRequest.h in Headers */, ACF6ED2F1B17843500DA7C62 /* ASStackLayoutSpec.h in Headers */, @@ -1649,7 +1644,6 @@ 34EFC75F1B701C8600AD841F /* ASInsetLayoutSpec.h in Headers */, 34EFC75D1B701BE900AD841F /* ASInternalHelpers.h in Headers */, 34EFC7671B701CD900AD841F /* ASLayout.h in Headers */, - 68355B331CB579AD001D4E68 /* ASImageNode+AnimatedImage.h in Headers */, DEC146B71C37A16A004A0EE7 /* ASCollectionInternal.h in Headers */, DBDB83951C6E879900D0098C /* ASPagerFlowLayout.h in Headers */, 34EFC7691B701CE100AD841F /* ASLayoutable.h in Headers */, diff --git a/AsyncDisplayKit/ASImageNode+AnimatedImage.h b/AsyncDisplayKit/ASImageNode+AnimatedImage.h deleted file mode 100644 index ae6ee4e7c0..0000000000 --- a/AsyncDisplayKit/ASImageNode+AnimatedImage.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// ASImageNode+AnimatedImage.h -// AsyncDisplayKit -// -// Created by Garrett Moon on 3/22/16. -// Copyright © 2016 Facebook. All rights reserved. -// - -#import "ASImageNode.h" -#import "ASImageProtocols.h" - -@interface ASImageNode (AnimatedImage) -@property (atomic, assign) BOOL animatedImagePaused; -@property (nullable, atomic, strong) id animatedImage; -@end diff --git a/AsyncDisplayKit/ASImageNode+AnimatedImage.mm b/AsyncDisplayKit/ASImageNode+AnimatedImage.mm index ae296ab608..ffebb96317 100644 --- a/AsyncDisplayKit/ASImageNode+AnimatedImage.mm +++ b/AsyncDisplayKit/ASImageNode+AnimatedImage.mm @@ -6,7 +6,7 @@ // Copyright © 2016 Facebook. All rights reserved. // -#import "ASImageNode+AnimatedImage.h" +#import "ASImageNode.h" #import "ASAssert.h" #import "ASImageProtocols.h" @@ -25,9 +25,12 @@ - (void)setAnimatedImage:(id )animatedImage { ASDN::MutexLocker l(_animatedImageLock); - if (!ASObjectIsEqual(_animatedImage, animatedImage)) { - _animatedImage = animatedImage; + if (ASObjectIsEqual(_animatedImage, animatedImage)) { + return; } + + _animatedImage = animatedImage; + if (animatedImage != nil) { __weak ASImageNode *weakSelf = self; if ([animatedImage respondsToSelector:@selector(setCoverImageReadyCallback:)]) { @@ -50,7 +53,7 @@ - (void)setAnimatedImagePaused:(BOOL)animatedImagePaused { - ASDN::MutexLocker l(_animatedImagePausedLock); + ASDN::MutexLocker l(_animatedImageLock); _animatedImagePaused = animatedImagePaused; ASPerformBlockOnMainThread(^{ if (animatedImagePaused) { @@ -63,7 +66,7 @@ - (BOOL)animatedImagePaused { - ASDN::MutexLocker l(_animatedImagePausedLock); + ASDN::MutexLocker l(_animatedImageLock); return _animatedImagePaused; } @@ -84,7 +87,7 @@ - (void)animatedImageFileReady { - dispatch_async(dispatch_get_main_queue(), ^{ + ASPerformBlockOnMainThread(^{ [self startAnimating]; }); } @@ -147,18 +150,6 @@ } } -- (void)__enterHierarchy -{ - [super __enterHierarchy]; - [self startAnimating]; -} - -- (void)__exitHierarchy -{ - [super __exitHierarchy]; - [self stopAnimating]; -} - - (void)displayLinkFired:(CADisplayLink *)displayLink { ASDisplayNodeAssertMainThread(); diff --git a/AsyncDisplayKit/ASImageNode.h b/AsyncDisplayKit/ASImageNode.h index 8ce01b6397..9e4a8024dd 100644 --- a/AsyncDisplayKit/ASImageNode.h +++ b/AsyncDisplayKit/ASImageNode.h @@ -8,6 +8,8 @@ #import +#import "ASImageProtocols.h" + NS_ASSUME_NONNULL_BEGIN /** @@ -110,6 +112,22 @@ typedef UIImage * _Nullable (^asimagenode_modification_block_t)(UIImage *image); */ - (void)setNeedsDisplayWithCompletion:(void (^ _Nullable)(BOOL canceled))displayCompletionBlock; +/** + * @abstract The animated image to playback + * + * @discussion Set this to an object which conforms to ASAnimatedImageProtocol + * to have the ASImageNode playback an animated image. + */ +@property (nullable, atomic, strong) id animatedImage; + +/** + * @abstract Pause the playback of an animated image. + * + * @discussion Set to YES to pause playback of an animated image and NO to resume + * playback. + */ +@property (atomic, assign) BOOL animatedImagePaused; + @end diff --git a/AsyncDisplayKit/ASImageNode.mm b/AsyncDisplayKit/ASImageNode.mm index 7bb5eaa7d3..0fddf08aa4 100644 --- a/AsyncDisplayKit/ASImageNode.mm +++ b/AsyncDisplayKit/ASImageNode.mm @@ -16,7 +16,6 @@ #import #import #import -#import #import #import "ASImageNode+CGExtras.h" diff --git a/AsyncDisplayKit/ASNetworkImageNode.mm b/AsyncDisplayKit/ASNetworkImageNode.mm index 6a8e37cbdb..c3b05421cb 100755 --- a/AsyncDisplayKit/ASNetworkImageNode.mm +++ b/AsyncDisplayKit/ASNetworkImageNode.mm @@ -15,7 +15,6 @@ #import "ASThread.h" #import "ASInternalHelpers.h" #import "ASImageContainerProtocolCategories.h" -#import "ASImageNode+AnimatedImage.h" #if PIN_REMOTE_IMAGE #import "ASPINRemoteImageDownloader.h" diff --git a/AsyncDisplayKit/AsyncDisplayKit.h b/AsyncDisplayKit/AsyncDisplayKit.h index ad24302d62..4035c60416 100644 --- a/AsyncDisplayKit/AsyncDisplayKit.h +++ b/AsyncDisplayKit/AsyncDisplayKit.h @@ -11,7 +11,6 @@ #import #import -#import #import #import #import diff --git a/AsyncDisplayKit/Details/ASImageProtocols.h b/AsyncDisplayKit/Details/ASImageProtocols.h index 3dc5568d06..c5079760d0 100644 --- a/AsyncDisplayKit/Details/ASImageProtocols.h +++ b/AsyncDisplayKit/Details/ASImageProtocols.h @@ -136,21 +136,62 @@ withDownloadIdentifier:(id)downloadIdentifier; @protocol ASAnimatedImageProtocol +/** + @abstract Should be called when the objects cover image is ready. + @param coverImageReadyCallback a block which receives the cover image. + */ @property (nonatomic, strong, readwrite) void (^coverImageReadyCallback)(UIImage *coverImage); @required +/** + @abstract Return the objects's cover image. + */ @property (nonatomic, readonly) UIImage *coverImage; +/** + @abstract Return a boolean to indicate that the cover image is ready. + */ @property (nonatomic, readonly) BOOL coverImageReady; +/** + @abstract Return the total duration of the animated image's playback. + */ @property (nonatomic, readonly) CFTimeInterval totalDuration; +/** + @abstract Return the interval at which playback should occur. Will be set to a CADisplayLink's frame interval. + */ @property (nonatomic, readonly) NSUInteger frameInterval; +/** + @abstract Return the total number of loops the animated image should play or 0 to loop infinitely. + */ @property (nonatomic, readonly) size_t loopCount; +/** + @abstract Return the total number of frames in the animated image. + */ @property (nonatomic, readonly) size_t frameCount; +/** + @abstract Return YES when playback is ready to occur. + */ @property (nonatomic, readonly) BOOL playbackReady; +/** + @abstract Return any error that has occured. Playback will be paused if this returns non-nil. + */ +@property (nonatomic, readonly) NSError *error; +/** + @abstract Should be called when playback is ready. + */ @property (nonatomic, strong, readwrite) dispatch_block_t playbackReadyCallback; +/** + @abstract Return the image at a given index. + */ - (CGImageRef)imageAtIndex:(NSUInteger)index; +/** + @abstract Return the duration at a given index. + */ - (CFTimeInterval)durationAtIndex:(NSUInteger)index; +/** + @abstract Clear any cached data. Called when playback is paused. + */ - (void)clearAnimatedImageCache; @end diff --git a/AsyncDisplayKit/Private/ASImageNode+AnimatedImagePrivate.h b/AsyncDisplayKit/Private/ASImageNode+AnimatedImagePrivate.h index 2814ef9ddc..d122c4e5d4 100644 --- a/AsyncDisplayKit/Private/ASImageNode+AnimatedImagePrivate.h +++ b/AsyncDisplayKit/Private/ASImageNode+AnimatedImagePrivate.h @@ -11,7 +11,6 @@ @interface ASImageNode () { ASDN::RecursiveMutex _animatedImageLock; - ASDN::RecursiveMutex _animatedImagePausedLock; ASDN::Mutex _displayLinkLock; id _animatedImage; BOOL _animatedImagePaused; diff --git a/examples/ASAnimatedImage/ASAnimatedImage/AppDelegate.m b/examples/ASAnimatedImage/ASAnimatedImage/AppDelegate.m deleted file mode 100644 index b4a601de56..0000000000 --- a/examples/ASAnimatedImage/ASAnimatedImage/AppDelegate.m +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// ASAnimatedImage -// -// Created by Garrett Moon on 3/22/16. -// Copyright © 2016 Facebook, Inc. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git a/examples/ASAnimatedImage/ASAnimatedImage/AppDelegate.h b/examples/AnimatedGIF/ASAnimatedImage/AppDelegate.h similarity index 100% rename from examples/ASAnimatedImage/ASAnimatedImage/AppDelegate.h rename to examples/AnimatedGIF/ASAnimatedImage/AppDelegate.h diff --git a/examples/AnimatedGIF/ASAnimatedImage/AppDelegate.m b/examples/AnimatedGIF/ASAnimatedImage/AppDelegate.m new file mode 100644 index 0000000000..fc2016ef4b --- /dev/null +++ b/examples/AnimatedGIF/ASAnimatedImage/AppDelegate.m @@ -0,0 +1,23 @@ +// +// AppDelegate.m +// ASAnimatedImage +// +// Created by Garrett Moon on 3/22/16. +// Copyright © 2016 Facebook, Inc. All rights reserved. +// + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Override point for customization after application launch. + return YES; +} + +@end diff --git a/examples/ASAnimatedImage/ASAnimatedImage/Assets.xcassets/AppIcon.appiconset/Contents.json b/examples/AnimatedGIF/ASAnimatedImage/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from examples/ASAnimatedImage/ASAnimatedImage/Assets.xcassets/AppIcon.appiconset/Contents.json rename to examples/AnimatedGIF/ASAnimatedImage/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/examples/ASAnimatedImage/ASAnimatedImage/Base.lproj/LaunchScreen.storyboard b/examples/AnimatedGIF/ASAnimatedImage/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from examples/ASAnimatedImage/ASAnimatedImage/Base.lproj/LaunchScreen.storyboard rename to examples/AnimatedGIF/ASAnimatedImage/Base.lproj/LaunchScreen.storyboard diff --git a/examples/ASAnimatedImage/ASAnimatedImage/Base.lproj/Main.storyboard b/examples/AnimatedGIF/ASAnimatedImage/Base.lproj/Main.storyboard similarity index 100% rename from examples/ASAnimatedImage/ASAnimatedImage/Base.lproj/Main.storyboard rename to examples/AnimatedGIF/ASAnimatedImage/Base.lproj/Main.storyboard diff --git a/examples/ASAnimatedImage/ASAnimatedImage/Info.plist b/examples/AnimatedGIF/ASAnimatedImage/Info.plist similarity index 100% rename from examples/ASAnimatedImage/ASAnimatedImage/Info.plist rename to examples/AnimatedGIF/ASAnimatedImage/Info.plist diff --git a/examples/ASAnimatedImage/ASAnimatedImage/ViewController.h b/examples/AnimatedGIF/ASAnimatedImage/ViewController.h similarity index 100% rename from examples/ASAnimatedImage/ASAnimatedImage/ViewController.h rename to examples/AnimatedGIF/ASAnimatedImage/ViewController.h diff --git a/examples/ASAnimatedImage/ASAnimatedImage/ViewController.m b/examples/AnimatedGIF/ASAnimatedImage/ViewController.m similarity index 87% rename from examples/ASAnimatedImage/ASAnimatedImage/ViewController.m rename to examples/AnimatedGIF/ASAnimatedImage/ViewController.m index 9087dfdd5d..658a93cb7a 100644 --- a/examples/ASAnimatedImage/ASAnimatedImage/ViewController.m +++ b/examples/AnimatedGIF/ASAnimatedImage/ViewController.m @@ -29,9 +29,4 @@ [self.view addSubnode:imageNode]; } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - @end diff --git a/examples/ASAnimatedImage/ASAnimatedImage/main.m b/examples/AnimatedGIF/ASAnimatedImage/main.m similarity index 100% rename from examples/ASAnimatedImage/ASAnimatedImage/main.m rename to examples/AnimatedGIF/ASAnimatedImage/main.m diff --git a/examples/ASAnimatedImage/Podfile b/examples/AnimatedGIF/Podfile similarity index 100% rename from examples/ASAnimatedImage/Podfile rename to examples/AnimatedGIF/Podfile diff --git a/examples/ASAnimatedImage/Sample.xcodeproj/project.pbxproj b/examples/AnimatedGIF/Sample.xcodeproj/project.pbxproj similarity index 100% rename from examples/ASAnimatedImage/Sample.xcodeproj/project.pbxproj rename to examples/AnimatedGIF/Sample.xcodeproj/project.pbxproj diff --git a/examples/ASAnimatedImage/Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/examples/AnimatedGIF/Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from examples/ASAnimatedImage/Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to examples/AnimatedGIF/Sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/examples/ASAnimatedImage/Sample.xcodeproj/xcshareddata/xcschemes/Sample.xcscheme b/examples/AnimatedGIF/Sample.xcodeproj/xcshareddata/xcschemes/Sample.xcscheme similarity index 100% rename from examples/ASAnimatedImage/Sample.xcodeproj/xcshareddata/xcschemes/Sample.xcscheme rename to examples/AnimatedGIF/Sample.xcodeproj/xcshareddata/xcschemes/Sample.xcscheme diff --git a/examples/ASAnimatedImage/Sample.xcworkspace/contents.xcworkspacedata b/examples/AnimatedGIF/Sample.xcworkspace/contents.xcworkspacedata similarity index 100% rename from examples/ASAnimatedImage/Sample.xcworkspace/contents.xcworkspacedata rename to examples/AnimatedGIF/Sample.xcworkspace/contents.xcworkspacedata