Support the SwiftPM Objective-C user to use #improt <SDWebImage/SDWebImage.h>, by using the link to the public header files and construct the same folder layout
This commit is contained in:
parent
e5adec920b
commit
1708ec67c1
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -32,8 +32,8 @@ let package = Package(
|
|||
dependencies: [],
|
||||
path: "SDWebImage",
|
||||
sources: ["Core", "Private"],
|
||||
publicHeadersPath: "Core",
|
||||
cSettings: [
|
||||
.headerSearchPath("Core"),
|
||||
.headerSearchPath("Private")
|
||||
]
|
||||
),
|
||||
|
|
|
@ -283,6 +283,12 @@ In the source files where you need to use the library, import the umbrella heade
|
|||
#import <SDWebImage/SDWebImage.h>
|
||||
```
|
||||
|
||||
It's also recommend to use the module import syntax, available for CocoaPods(enable `modular_headers`)/Carthage/SwiftPM.
|
||||
|
||||
```objecitivec
|
||||
@import SDWebImage;
|
||||
```
|
||||
|
||||
### Build Project
|
||||
|
||||
At this point your workspace should build without error. If you are having problem, post to the Issue and the
|
||||
|
|
|
@ -6,12 +6,11 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
#import "SDWebImageCompat.h"
|
||||
#import <SDWebImage/SDWebImage.h>
|
||||
|
||||
#if SD_UIKIT || SD_MAC
|
||||
|
||||
#import <MapKit/MapKit.h>
|
||||
#import "SDWebImageManager.h"
|
||||
|
||||
/**
|
||||
* Integrates SDWebImage async downloading and caching of remote images with MKAnnotationView.
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
#if SD_UIKIT || SD_MAC
|
||||
|
||||
#import "UIView+WebCache.h"
|
||||
|
||||
@implementation MKAnnotationView (WebCache)
|
||||
|
||||
- (void)sd_setImageWithURL:(nullable NSURL *)url {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../../Core/NSButton+WebCache.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/NSData+ImageContentType.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/NSImage+Compatibility.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDAnimatedImage.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDAnimatedImagePlayer.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDAnimatedImageRep.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDAnimatedImageView+WebCache.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDAnimatedImageView.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDDiskCache.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDGraphicsImageRenderer.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageAPNGCoder.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageCache.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageCacheConfig.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageCacheDefine.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageCachesManager.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageCoder.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageCoderHelper.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageCodersManager.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageFrame.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageGIFCoder.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageGraphics.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageHEICCoder.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageIOAnimatedCoder.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageIOCoder.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageLoader.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageLoadersManager.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDImageTransformer.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDMemoryCache.h
|
|
@ -0,0 +1 @@
|
|||
../../../WebImage/SDWebImage.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageCacheKeyFilter.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageCacheSerializer.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageCompat.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageDefine.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageDownloader.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageDownloaderConfig.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageDownloaderDecryptor.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageDownloaderOperation.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageDownloaderRequestModifier.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageDownloaderResponseModifier.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageError.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageIndicator.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageManager.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageOperation.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageOptionsProcessor.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImagePrefetcher.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/SDWebImageTransition.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIButton+WebCache.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIImage+ExtendedCacheData.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIImage+ForceDecode.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIImage+GIF.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIImage+MemoryCacheCost.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIImage+Metadata.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIImage+MultiFormat.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIImage+Transform.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIImageView+HighlightedWebCache.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIImageView+WebCache.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIView+WebCache.h
|
|
@ -0,0 +1 @@
|
|||
../../Core/UIView+WebCacheOperation.h
|
Loading…
Reference in New Issue