{"id":28559052,"url":"https://github.com/sdwebimage/sdwebimageyyplugin","last_synced_at":"2025-06-22T23:06:13.884Z","repository":{"id":52996056,"uuid":"132433987","full_name":"SDWebImage/SDWebImageYYPlugin","owner":"SDWebImage","description":"A SDWebImage plugin to integrate YYImage \u0026 YYCache for image rendering \u0026 caching","archived":false,"fork":false,"pushed_at":"2025-02-24T11:22:16.000Z","size":338,"stargazers_count":24,"open_issues_count":1,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-04T03:30:12.752Z","etag":null,"topics":["carthage","cocoapods","image","ios","sdwebimage","yycache","yyimage"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SDWebImage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-07T08:56:25.000Z","updated_at":"2025-02-24T11:22:20.000Z","dependencies_parsed_at":"2024-11-06T14:26:17.574Z","dependency_job_id":"a7009562-d507-4da1-8893-584b0ca4b8d1","html_url":"https://github.com/SDWebImage/SDWebImageYYPlugin","commit_stats":{"total_commits":63,"total_committers":3,"mean_commits":21.0,"dds":0.09523809523809523,"last_synced_commit":"5ada4bca5372a298f99f99faa2922ac3ae49b20e"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2FSDWebImageYYPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2FSDWebImageYYPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2FSDWebImageYYPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2FSDWebImageYYPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SDWebImage","download_url":"https://codeload.github.com/SDWebImage/SDWebImageYYPlugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2FSDWebImageYYPlugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259039550,"owners_count":22796854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carthage","cocoapods","image","ios","sdwebimage","yycache","yyimage"],"created_at":"2025-06-10T08:35:58.777Z","updated_at":"2025-06-10T08:36:00.110Z","avatar_url":"https://github.com/SDWebImage.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDWebImageYYPlugin\n\n[![CI Status](https://img.shields.io/travis/SDWebImage/SDWebImageYYPlugin.svg?style=flat)](https://travis-ci.org/SDWebImage/SDWebImageYYPlugin)\n[![Version](https://img.shields.io/cocoapods/v/SDWebImageYYPlugin.svg?style=flat)](https://cocoapods.org/pods/SDWebImageYYPlugin)\n[![License](https://img.shields.io/cocoapods/l/SDWebImageYYPlugin.svg?style=flat)](https://cocoapods.org/pods/SDWebImageYYPlugin)\n[![Platform](https://img.shields.io/cocoapods/p/SDWebImageYYPlugin.svg?style=flat)](https://cocoapods.org/pods/SDWebImageYYPlugin)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/SDWebImage/SDWebImageYYPlugin)\n[![codecov](https://codecov.io/gh/SDWebImage/SDWebImageYYPlugin/branch/master/graph/badge.svg)](https://codecov.io/gh/SDWebImage/SDWebImageYYPlugin)\n\n## What's for\nSDWebImageYYPlugin is a plugin for [SDWebImage](https://github.com/rs/SDWebImage/) framework, which provide the image loading support for [YYImage](https://github.com/ibireme/YYImage) (including YYImage's decoding system and `YYAnimatedImageView`) and [YYCache](https://github.com/ibireme/YYCache) cache system.\n\nBy using SDWebImageYYPlugin, you can use all you familiar SDWebImage's loading method, on the `YYAnimatedImageView`.\n\nAnd you can also use `YYCache` instead of `SDImageCache` for image cache system, which may better memory cache performance (By taking advanced of LRU algorithm), and disk cache performance (By taking advanced of sqlite blob storage)\n\n## Long term maintenance\nThis repo was created as a showcase how power the SDWebImage 5.0's customization can be. But actually is not recommended to use in commercial applications.\n\nSince the upstream YYImage/YYCache has no longer maintained, and SDWebImage itself has become more and more performant than previous versions. I will not always up-to-date the compatibility with SDWebImage's internal changes from version to version. This repo will be deprecated in the future (like SDWebImage 6.0). But the PR for bugfix is still welcomed.\n\n## Usage\n\n#### YYImage Plugin\nTo load a network image, simply call the View Category method like UIImageView.\n\n+ Objective-C\n\n```objectivec\nYYAnimatedImageView *imageView;\n[imageView sd_setImageWithURL:[NSURL URLWithString:@\"http://www.domain.com/path/to/image.gif\"]];\n```\n\n+ Swift\n\n```swift\nlet imageView: YYAnimatedImageView\nimageView.sd_setImage(with: URL(string: \"http://www.domain.com/path/to/image.gif\"))\n```\n\nFor advanced user, you can embed `YYImageDecoder` \u0026\u0026 `YYImageEncoder` to SDWebImage by using the wrapper class `SDImageYYCoder`. See [Custom Coder](https://github.com/rs/SDWebImage/wiki/Advanced-Usage#custom-coder-420) wiki in SDWebImage.\n\n+ Objective-C\n\n```objectivec\n// Register YYImage decoder/encoder as coder plugin\n[SDImageCodersManager.sharedManager addCoder:SDImageYYCoder.sharedCoder];\n```\n\n+ Swift\n\n```swift\n// Register YYImage decoder/encoder as coder plugin\nSDImageCodersManager.shared.addCoder(SDImageYYCoder.shared)\n```\n\n#### YYCache Plugin\nTo enable `YYCache` instead of `SDImageCache`, you can bind the cache for shared manager, or create a custom manager instead.\n\n+ Objective-C\n\n```objectivec\n// Use `YYCache` for shared manager\nSDWebImageManger.defaultImageCache = [YYCache cacheWithName:@\"name\"];\n```\n\n+ Swift\n\n```swift\n// Use `YYCache` for shared manager\nSDWebImageManger.defaultImageCache = YYCache(name: \"name\")\n```\n\nYou can also use `YYMemoryCache` or `YYDiskcache` to customize memory cache / disk cache only. See [Custom Cache](https://github.com/rs/SDWebImage/wiki/Advanced-Usage#custom-cache-50) wiki in SDWebImage.\n\n+ Objective-C\n\n```objectivec\n// Use `YYMemoryCache` for shared `SDImageCache` memory cache implementation\nSDImageCacheConfig.defaultCacheConfig.memoryCacheClass = YYMemoryCache.class;\n// Use `YYDiskCache` for shared `SDImageCache` disk cache implementation\nSDImageCacheConfig.defaultCacheConfig.diskCacheClass = YYDiskCache.class;\n```\n\n+ Swift\n\n```swift\n// Use `YYMemoryCache` for `SDImageCache` memory cache implementation\nSDImageCacheConfig.default.memoryCacheClass = YYMemoryCache.self\n// Use `YYDiskCache` for `SDImageCache` disk cache implementation\nSDImageCacheConfig.default.diskCacheClass = YYDiskCache.self\n```\n\n## Requirements\n\n+ iOS 9+\n+ Xcode 12+\n\n## Installation\n\n#### CocoaPods\n\nSDWebImageYYPlugin is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SDWebImageYYPlugin'\n```\n\nSDWebImageYYPlugin contains two subspecs, `YYCache` and `YYImage`. You can choose to enable only some of them. By default will contains all subspecs.\n\n```ruby\npod 'SDWebImageYYPlugin/YYImage'\npod 'SDWebImageYYPlugin/YYCache'\n```\n\n#### Carthage\n\nSDWebImageFLPlugin is available through [Carthage](https://github.com/Carthage/Carthage).\n\n```\ngithub \"SDWebImage/SDWebImageYYPlugin\"\n```\n\nCarthage does not support like CocoaPods' subspec, the built framework will contains both YYCache \u0026\u0026 YYImage support.\n\nNote because of limit of [YYImage Carthage support](https://github.com/ibireme/YYImage#carthage), YYImage plugin with Carthage will not support WebP format. If you want to support WebP format, use CocoaPods instead.\n\n## Author\n\nDreamPiggy, lizhuoli1126@126.com\n\n## License\n\nSDWebImageYYPlugin is available under the MIT license. See the LICENSE file for more info.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdwebimage%2Fsdwebimageyyplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdwebimage%2Fsdwebimageyyplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdwebimage%2Fsdwebimageyyplugin/lists"}