Skip to content

Commit 9c1173e

Browse files
authored
Merge pull request #5 from SDWebImage/fix_module_import
Fix the compatible issue when using the Static Library (CocoaPods) to install SDWebImage
2 parents 29b7ba3 + 83b2fcf commit 9c1173e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

SDWebImagePDFCoder/Classes/SDImagePDFCoder.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
// Created by lizhuoli on 2018/10/28.
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

SDWebImagePDFCoder/Classes/SDWebImagePDFCoderDefine.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
// Created by lizhuoli on 2018/10/28.
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

0 commit comments

Comments
 (0)