We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sd_imageFormat
1 parent 0b10fcb commit 9741e33Copy full SHA for 9741e33
SDWebImage/Core/SDAnimatedImage.m
@@ -182,6 +182,8 @@ - (instancetype)initWithData:(NSData *)data scale:(CGFloat)scale options:(SDImag
182
#else
183
self = [super initWithCGImage:image.CGImage scale:MAX(scale, 1) orientation:image.imageOrientation];
184
#endif
185
+ // Defines the associated object that holds the format for static images
186
+ super.sd_imageFormat = format;
187
return self;
188
}
189
@@ -375,7 +377,8 @@ - (SDImageFormat)sd_imageFormat {
375
377
376
378
379
- (void)setSd_imageFormat:(SDImageFormat)sd_imageFormat {
- return;
380
+ // Sets the image format for static images
381
+ super.sd_imageFormat = sd_imageFormat;
382
383
384
- (BOOL)sd_isVector {
0 commit comments