Merge pull request #3760 from lukmccall/patch-1

Fix `sd_imageFormat` sometimes returns `undefined`
This commit is contained in:
DreamPiggy 2024-10-21 17:27:49 +08:00 committed by GitHub
commit 780aa6db62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -182,6 +182,8 @@ static CGFloat SDImageScaleFromPath(NSString *string) {
#else
self = [super initWithCGImage:image.CGImage scale:MAX(scale, 1) orientation:image.imageOrientation];
#endif
// Defines the associated object that holds the format for static images
super.sd_imageFormat = format;
return self;
}
}
@ -374,10 +376,6 @@ static CGFloat SDImageScaleFromPath(NSString *string) {
}
}
- (void)setSd_imageFormat:(SDImageFormat)sd_imageFormat {
return;
}
- (BOOL)sd_isVector {
return NO;
}