测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可 | MIT |
发布上次发布 | 2018年1月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 Federico Gentile 维护。
Cachy 是一款简单的 iOS 图像缓存库。
使用 Cocoapods
use_frameworks!
pod 'Cachy'
或者您也可以直接从 "Cachy" 文件夹中导入类。
##要求
##如何使用
有一个用于 ImageView 的扩展可以使用 Cachy。只需传入图像 URL 作为字符串即可
let yourImageView = UIImageView()
yourImageView.cachyImageFrom(link: YOUR_IMAGE_LINK_HERE)
如果您需要它,还有一个带有完成处理器的扩展
let yourImageView = UIImageView()
yourImageView.cachyImageFrom(link: YOUR_IMAGE_LINK_HERE, withHandler: { (success) in
}
非常简单。不是吗?
享受! ;D
如果您使用此库,请 联系我,我将将其添加到以下列表中
###开发者
Federico Gentile - [email protected]
The MIT License (MIT)
Copyright (c) 2016 Federico Gentile
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.