Upgrades to latest PINRemoteImage which should fix GIF rendering. (#3057)

This commit is contained in:
Garrett Moon 2017-02-21 11:43:36 -08:00 committed by GitHub
parent 4e779eeed8
commit 75fddb1f77
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ Pod::Spec.new do |spec|
spec.subspec 'PINRemoteImage' do |pin|
# Note: The core.prefix_header_file includes setup of PIN_REMOTE_IMAGE, so the line below could be removed.
pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' }
pin.dependency 'PINRemoteImage/iOS', '= 3.0.0-beta.7'
pin.dependency 'PINRemoteImage/iOS', '= 3.0.0-beta.8'
pin.dependency 'PINRemoteImage/PINCache'
pin.dependency 'AsyncDisplayKit/Core'
end

View File

@ -164,8 +164,8 @@ static ASPINRemoteImageDownloader *sharedDownloader = nil;
- (id <ASImageContainerProtocol>)synchronouslyFetchedCachedImageWithURL:(NSURL *)URL;
{
PINRemoteImageManager *manager = [self sharedPINRemoteImageManager];
NSString *key = [manager cacheKeyForURL:URL processorKey:nil];
PINRemoteImageManagerResult *result = [manager synchronousImageFromCacheWithCacheKey:key options:PINRemoteImageManagerDownloadOptionsSkipDecode];
PINRemoteImageManagerResult *result = [manager synchronousImageFromCacheWithURL:URL processorKey:nil options:PINRemoteImageManagerDownloadOptionsSkipDecode];
#if PIN_ANIMATED_AVAILABLE
if (result.alternativeRepresentation) {
return result.alternativeRepresentation;