<p align="center" >
<img src="https://raw.githubusercontent.com/SDWebImage/SDWebImage/master/SDWebImage_logo.png" title="SDWebImage logo" float=left>
</p>
[![Build Status](http://img.shields.io/travis/SDWebImage/SDWebImage/master.svg?style=flat)](https://travis-ci.org/SDWebImage/SDWebImage)
[![Pod Version](http://img.shields.io/cocoapods/v/SDWebImage.svg?style=flat)](http://cocoadocs.org/docsets/SDWebImage/)
[![Pod Platform](http://img.shields.io/cocoapods/p/SDWebImage.svg?style=flat)](http://cocoadocs.org/docsets/SDWebImage/)
[![Pod License](http://img.shields.io/cocoapods/l/SDWebImage.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg)](https://github.com/SDWebImage/SDWebImage)
[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg)](https://swift.org/package-manager/)
[![Mac Catalyst compatible](https://img.shields.io/badge/Catalyst-compatible-brightgreen.svg)](https://developer.apple.com/documentation/xcode/creating_a_mac_version_of_your_ipad_app/)
[![codecov](https://codecov.io/gh/SDWebImage/SDWebImage/branch/master/graph/badge.svg)](https://codecov.io/gh/SDWebImage/SDWebImage)
This library provides an async image downloader with cache support. For convenience, we added categories for UI elements like `UIImageView`, `UIButton`, `MKAnnotationView`.
## Features
- [x] Categories for `UIImageView`, `UIButton`, `MKAnnotationView` adding web image and cache management
- [x] An asynchronous image downloader
- [x] An asynchronous memory + disk image caching with automatic cache expiration handling
- [x] A background image decompression to avoid frame rate drop
- [x] [Progressive image loading](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#progressive-animation) (including animated image, like GIF showing in Web browser)
- [x] [Thumbnail image decoding](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#thumbnail-decoding-550) to save CPU && Memory for large images
- [x] [Extendable image coder](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#custom-coder-420) to support massive image format, like WebP
- [x] [Full-stack solution for animated images](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#animated-image-50) which keep a balance between CPU && Memory
- [x] [Customizable and composable transformations](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#transformer-50) can be applied to the images right after download
- [x] [Customizable and multiple caches system](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#custom-cache-50)
- [x] [Customizable and multiple loaders system](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#custom-loader-50) to expand the capabilities, like [Photos Library](https://github.com/SDWebImage/SDWebImagePhotosPlugin)
- [x] [Image loading indicators](https://github.com/SDWebImage/SDWebImage/wiki/How-to-use#use-view-indicator-50)
- [x] [Image loading transition animation](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#image-transition-430)
- [x] A guarantee that the same URL won't be downloaded several times
- [x] A guarantee that bogus URLs won't be retried again and again
- [x] A guarantee that main thread will never be blocked
- [x] Modern Objective-C and better Swift support
- [x] Performances!
## Supported Image Formats
- Image formats supported by Apple system (JPEG, PNG, TIFF, BMP, ...), including [GIF](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#gif-coder)/[APNG](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#apng-coder) animated image
- HEIC format from iOS 11/macOS 10.13, including animated HEIC from iOS 13/macOS 10.15 via [SDWebImageHEICCoder](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#heic-coder). For lower firmware, use coder plugin [SDWebImageHEIFCoder](https://github.com/SDWebImage/SDWebImageHEIFCoder)
- WebP format from iOS 14/macOS 11.0 via [SDWebImageAWebPCoder](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#awebp-coder). For lower firmware, use coder plugin [SDWebImageWebPCoder](https://github.com/SDWebImage/SDWebImageWebPCoder)
- Support extendable coder plugins for new image formats like BPG, AVIF. And vector format like PDF, SVG. See all the list in [Image coder plugin List](https://github.com/SDWebImage/SDWebImage/wiki/Coder-Plugin-List)
## Additional modules and Ecosystem
In order to keep SDWebImage focused and limited to the core features, but also allow extensibility and custom behaviors, during the 5.0 refactoring we focused on modularizing the library.
As such, we have moved/built new modules to [SDWebImage org](https://github.com/SDWebImage).
#### SwiftUI
[SwiftUI](https://developer.apple.com/xcode/swiftui/) is an innovative UI framework written in Swift to build user interfaces across all Apple platforms.
We support SwiftUI by building a brand new framework called [SDWebImageSwiftUI](https://github.com/SDWebImage/SDWebImageSwiftUI), which is built on top of SDWebImage core functions (caching, loading and animation).
The new framework introduce two View structs `WebImage` and `AnimatedImage` for SwiftUI world, `ImageIndicator` modifier for any View, `ImageManager` observable object for data source. Supports iOS 13+/macOS 10.15+/tvOS 13+/watchOS 6+ and Swift 5.1. Have a nice try and provide feedback!
#### Coders for additional image formats
- [SDWebImageWebPCoder](https://github.com/SDWebImage/SDWebImageWebPCoder) - coder for WebP format. iOS 8+/macOS 10.10+. Based on [libwebp](https://chromium.googlesource.com/webm/libwebp)
- [SDWebImageHEIFCoder](https://github.com/SDWebImage/SDWebImageHEIFCoder) - coder for HEIF format, iOS 8+/macOS 10.10+ support. Based on [libheif](https://github.com/strukturag/libheif)
- [SDWebImageBPGCoder](https://github.com/SDWebImage/SDWebImageBPGCoder) - coder for BPG format. Based on [libbpg](https://github.com/mirrorer/libbpg)
- [SDWebImageFLIFCoder](https://github.com/SDWebImage/SDWebImageFLIFCoder) - coder for FLIF format. Based on [libflif](https://github.com/FLIF-hub/FLIF)
- [SDWebImageAVIFCoder](https://github.com/SDWebImage/SDWebImageAVIFCoder) - coder for AVIF (AV1-based) format. Based on [libavif](https://github.com/AOMediaCodec/libavif)
- [SDWebImagePDFCoder](https://github.com/SDWebImage/SDWebImagePDFCoder) - coder for PDF vector format. Using built-in frameworks
- [SDWebImageSVGCoder](https://github.com/SDWebImage/SDWebImageSVGCoder) - coder for SVG vector format. Using built-in frameworks
- [SDWebImageLottieCoder](https://github.com/SDWebImage/SDWebImageLottieCoder) - coder for Lottie animation format. Based on [rlottie](https://github.com/Samsung/rlottie)
- and more from community!
#### Custom Caches
- [SDWebImageYYPlugin](https://github.com/SDWebImage/SDWebImageYYPlugin) - plugin to support caching images with [YYCache](https://github.com/ibireme/YYCache)
- [SDWebImagePINPlugin](https://github.com/SDWebImage/SDWebImagePINPlugin) - plugin to support caching images with [PINCache](https://github.com/pinterest/PINCache)
#### Custom Loaders
- [SDWebImagePhotosPlugin](https://github.com/SDWebImage/SDWebImagePhotosPlugin) - plugin to support loading images from Photos (using `Photos.framework`)
- [SDWebImageLinkPlugin](https://github.com/SDWebImage/SDWebImageLinkPlugin) - plugin to support loading images from rich link url, as well as `LPLinkView` (using `LinkPresentation.framework`)
#### Integration with 3rd party libraries
- [SDWebImageLottiePlugin](https://github.com/SDWebImage/SDWebImageLottiePlugin) - plugin to support [Lottie-iOS](https://github.com/airbnb/lottie-ios), vector animation rending with remote JSON files
- [SDWebImageSVGKitPlugin](https://github.com/SDWebImage/SDWebImageLottiePlugin) - plugin to support [SVGKit](https://github.com/SVGKit/SVGKit), SVG rendering using Core Animation, iOS 8+/macOS 10.10+ support
- [SDWebImageFLP
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
CaoNaiPeng.zip (407个子文件)
008f24c563aefd2dfdb31babfab617dadeeb8f 140B
0cf64172d2f218603f177dde9db55e2754d355 19KB
0fa588a880a91f908e67bdf1d5cffb739e8b70 3KB
13e6d41e07c4e2da302545b8b42b2304f81ac1 51B
1bca6fd2ae6a3974fbe6d323b8899f78d6e42a 256B
21b9bb1a35f5de270a41afa01305478221ae32 253B
26baa9b7b42ec9758372b68f4425cb3b2bbb0c 16KB
2c9341b9a8b992ebffe4efbdee3f73a7ee1f9f 921B
3cc9b8ba4e4ae5c6df5ed5e3f199668b7fead0 68B
439e2b2a1f4c7edb5ff947d48501b6e1396453 146B
497068ca00e9bb5550bc33b3b03c4997d2ea6d 139B
4a1ef7d2086fc1cd3e9d176e233c39e9a3763c 166B
4a201f5cdbd153c95352079b37a1c1322979bb 268B
4f84a9039919d35406f1d39025f4e97be2c160 146B
5158be860da86411320e4da2725096a8d4c8b7 343B
571e8d9f6647dda95b8acbb4e20f6fd48d7835 824B
57956b0d81b908c9795f5aa997917809f06c62 61KB
58c488fb112e05a9b94bc919e879eeb86d3f54 26KB
5e9329f3767a7c1dd66294b8025bf81dee7d2c 781B
638cfcff9ae22c3b05b3eebc932a0df3f2fcb8 146B
63f856bd8729b4fa51ff1c485b0d872fe3775c 166B
6ba57e3ec27e7a74574b30001615ba1c9ff1b5 87B
6bd324c26d854187559f27f8194c8afd1795ac 58B
6f5a24ca43bc3520c85fdf0cf89777ad7b0994 253B
71f7ca93b6ecb459562d27ffce61b9e340e14c 140B
7c7e5b93b8cd28adb4b7fd350487a5054dab5b 191B
8789700816459c1e1480e0b34781d9fb78a1ca 105B
896ee566ed05141c45c61f41883fe126b9abf4 146B
8a21ce779bae61839ac1803bc4e2c854578f5e 747B
9434a6254f0e9651f402737811be6634a03e9c 117B
94c9846cdbe0e73a44bebdf09a408adff74ba7 105B
9519c7d3b11f0538f223c2c23432afbc13f62f 95B
9af080871a5a2280cff20a6a581b8da30bb80d 64B
a1227bdeb4f3b769e955f6ac110c77c9f92bb2 132B
a996090e67193c232ca56ec601cdfb627b5cdf 158B
aeff7251bc2aa7c81857b2043eb7b7b560eb63 67B
b632ecdc81beb20ba07b8eed4e9b806169f522 622B
b9041fa1124d3c3a13e171b7c13b8dd3298ecd 774B
b9a02a0092b239f78756de5434892cafb5083a 169B
baf4f943987fca28e204b32a72f743e9926558 13KB
c00596a7fca3f3d4bdd64053b69d86745f9e10 66B
c59322f9dcaf95b8dd2f75b5d3ef04acdf7ac7 17KB
c8b620e3ab213298b677fe6564f54e86be4c53 58B
COMMIT_EDITMSG 15B
config 137B
d35049783748eed3f715302df4ecc89bf982b1 169B
d981003d68d0546c4804ac2ff47dd97c6e7921 206B
decca8b70614d15b57061dff51542d7d4e8732 250B
description 73B
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
e7d21fe1431a09c76893d5642098a45fe1dedd 882B
e85368e56704af857085d05f8635bd5ec40990 913B
e8ef11014d5368ccca4a081c1b316062cc84d8 146B
ecf98c38632516ffb6c3779fa80d2f4d3a16df 295B
ed29b76cfbe2a2a82ddd0448491c41d7839480 344B
exclude 40B
f1d098b9977f828a7bbd4909247de64eb355a3 14KB
f49bff4623b9be11455e7411fb27f4894c3d0a 145B
f5422721d0c10ca1333a162acb4a0f372105d8 155B
f5b7a0a7f6d57a2696cef295a12797068707ff 222B
SDmetamacros.h 30KB
SDWebImageDefine.h 22KB
SDImageCache.h 21KB
UIButton+WebCache.h 20KB
NSButton+WebCache.h 17KB
SDWebImageDownloader.h 15KB
SDImageCoder.h 14KB
SDWebImageManager.h 13KB
SDImageLoader.h 10KB
UIImageView+WebCache.h 9KB
SDAnimatedImageView+WebCache.h 8KB
SDWebImageDownloaderOperation.h 8KB
SDImageTransformer.h 8KB
SDImageCacheDefine.h 8KB
SDWebImageTransition.h 7KB
SDAnimatedImage.h 6KB
UIImageView+HighlightedWebCache.h 6KB
SDImageCacheConfig.h 6KB
SDImageCoderHelper.h 6KB
SDWebImagePrefetcher.h 6KB
UIView+WebCache.h 6KB
SDAnimatedImageView.h 6KB
UIImage+Transform.h 6KB
SDAnimatedImagePlayer.h 5KB
SDDiskCache.h 5KB
SDWebImageDownloaderConfig.h 5KB
SDGraphicsImageRenderer.h 4KB
SDWebImageDownloaderResponseModifier.h 3KB
SDWebImage.h 3KB
SDInternalMacros.h 3KB
SDWebImageIndicator.h 3KB
SDWebImageDownloaderRequestModifier.h 3KB
NSImage+Compatibility.h 3KB
UIImage+MultiFormat.h 3KB
SDImageCachesManager.h 3KB
UIImage+Metadata.h 3KB
SDMemoryCache.h 2KB
共 407 条
- 1
- 2
- 3
- 4
- 5
我若为帝
- 粉丝: 4
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0