BSPhotoGallery 0.4

BSPhotoGallery 0.4

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2016年9月
SPM支持 SPM

kunass2 维护。



  • Bartłomiej Semańczyk

BSPhotoGallery

用法

要运行示例项目,请首先从GitHub克隆仓库,并在 Example 目录中运行 pod install

安装

BSPhotoGallery 通过 CocoaPods 提供。要安装它,只需在您的 Podfile 中添加以下行

pod "BSPhotoGallery"

如果您在 podfile 中使用了 use_framework 只需这样

import BSPhotoGallery

在您需要使用它的每个文件中。

您还可以使用

@import BSPhotoGallery

桥接头文件 中,以避免为每个所需的文件导入框架。

用法

使用字符串数组创建您的画廊对象
let gallery = BSPhotoGallery(urls: urls).controller()
或使用图像数组
let gallery = BSPhotoGallery(images: images).controller()
然后只需呈现您的画廊
present(gallery, animated: true)