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.
1 parent 7f94bf6 commit cf588c8Copy full SHA for cf588c8
SDWebImageSwiftUI/Classes/SDAnimatedImageInterface.m
@@ -12,6 +12,7 @@
12
13
@protocol CALayerProtocol <NSObject>
14
@property (nullable, strong) id contents;
15
+@property CGFloat contentsScale;
16
@end
17
18
@protocol UIViewProtocol <NSObject>
@@ -159,7 +160,9 @@ - (void)startBuiltInAnimationWithImage:(UIImage<SDAnimatedImage> *)animatedImage
159
160
161
- (void)displayLayer {
162
if (self.currentFrame) {
- [self _interfaceView].layer.contents = (__bridge id)self.currentFrame.CGImage;
163
+ id<CALayerProtocol> layer = [self _interfaceView].layer;
164
+ layer.contentsScale = self.animatedImageScale;
165
+ layer.contents = (__bridge id)self.currentFrame.CGImage;
166
}
167
168
0 commit comments