Skip to content

Commit 7ac13af

Browse files
authored
Merge pull request #56 from SDWebImage/bugfix_watchkit_size_arg
Fix the issue that WatchKit patch will cause other WatchKit interfaceObject with sizing issue
2 parents 204d2b8 + e099dd7 commit 7ac13af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImageSwiftUI/Classes/ObjC/SDAnimatedImageInterfaceWrapper.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static CGSize sizeThatFitsIMP(id<UIViewProtocol> self, SEL _cmd, CGSize size) {
104104
NSUInteger tag = self.tag;
105105
id<UIViewProtocol> interfaceView = self.subviews.firstObject;
106106
if (tag != SDAnimatedImageInterfaceWrapperTag || !interfaceView) {
107-
return ((CGSize(*)(id, SEL))objc_msgSend)(self, NSSelectorFromString(SDAnimatedImageInterfaceWrapperSEL_sizeThatFits));
107+
return ((CGSize(*)(id, SEL, CGSize))objc_msgSend)(self, NSSelectorFromString(SDAnimatedImageInterfaceWrapperSEL_sizeThatFits), size);
108108
}
109109
return size;
110110
}

0 commit comments

Comments
 (0)