Skip to content

Commit 7eec303

Browse files
committed
Fix the compatible issue when using the Static Library (CocoaPods) to install SDWebImage, also keep the module import for framework target
1 parent 9675e98 commit 7eec303

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

SDWebImageSVGCoder/Classes/SDImageSVGCoder.h

+4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
// Created by DreamPiggy on 2018/9/27.
66
//
77

8+
#if __has_include(<SDWebImage/SDWebImage.h>)
9+
#import <SDWebImage/SDWebImage.h>
10+
#else
811
@import SDWebImage;
12+
#endif
913

1014
NS_ASSUME_NONNULL_BEGIN
1115

SDWebImageSVGCoder/Classes/SDWebImageSVGCoderDefine.h

+4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
// Created by DreamPiggy on 2018/10/11.
66
//
77

8+
#if __has_include(<SDWebImage/SDWebImage.h>)
9+
#import <SDWebImage/SDWebImage.h>
10+
#else
811
@import SDWebImage;
12+
#endif
913

1014
/**
1115
A BOOL value which specify whether we prefer the actual bitmap representation instead of vector representation for SVG image. This is because the UIImage on iOS 13+ (NSImage on macOS 10.15+) can use the vector image format, which support dynamic scale without losing any detail. However, for some image processing logic, user may need the actual bitmap representation to manage pixels. (NSNumber)

0 commit comments

Comments
 (0)