ACProductPhotoGallery
ACProductPhotoGallery 是由 Aras Cagliuzun 为 patirti 编写的。
ACProductPhotoGallery
是一款现代化的照片库,用 Swift
编写,用于 iOS
。它可以处理远程图片,使用 Kingfisher
显示可缩放的图片。此外,ACProductPhotoGallery
还具有导航区域,可以在大图像底部选择图片。
示例
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
platform :ios, '9.0'
用法
import ACProductPhotoGallery
let images = [
"http://www.remotedomain.com/imag1.jpg",
"http://www.remotedomain.com/image2.jpg"]
let vc = PPGZoomableImageSlider(images: images, currentIndex: nil, showPageIndex: true, closeButtonImage: UIImage(named: "closeBlack"))
vc.PPGSliderDelegate = self
vc.modalPresentationStyle = .fullScreen
present(vc, animated: true, completion: nil)
安装
ACProductPhotoGallery 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod 'ACProductPhotoGallery'
作者
(marcoaras) Aras Cagliuzun, [email protected] http://linkedin.com/in/aras-cagliuzun-99376221
许可协议
ACProductPhotoGallery可在MIT许可下使用。有关更多信息,请参阅LICENSE文件。
MIT许可协议(MIT)
版权所有(c)2019 Aras Cagliuzun
本软件及相关文档(以下称为“软件”)的副本由任何个人获取,特此免费授予无限制使用、复制、修改、合并、发布、分发、 sublicense 和/或出售软件副本的权利,并允许向软件提供软件的个人这样做,但受以下条件约束:
上述版权声明和本许可声明应包含在软件的所有副本或主要部分中。
软件按“原样”提供,不提供任何形式的保证,无论是明示的、暗示的还是其他的,包括但不限于适销性、针对特定目的的适用性和非侵权性保证。在任何情况下,作者或版权持有者不对任何索赔、损害或其他责任负责,无论源于合同、侵权或其它。