PopupCollectionViewController 0.2.2

PopupCollectionViewController 0.2.2

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布日期最新发布2017年5月
SwiftSwift 版本3.0
SPM支持 SPM

corin8823 维护。



PopupCollectionViewController

描述和 appetize.io 的 DEMO

使用方法

要运行示例项目,先克隆 Git 仓库,然后从 Example 目录中先运行 pod install

let popupVC = PopupCollectionViewController(fromVC: self)
popupVC.presentViewControllers([UIViewController()], completion: nil)

自定义

let popupVC = PopupCollectionViewController(fromVC: self)
popupVC.presentViewControllers([UIViewController(), UIViewController()],
    options: [
        .cellWidth(self.view.bounds.width),
        .popupHeight(400),
        .contentEdgeInsets(0),
        .layout(.center),
        .animation(.slideLeft)
    ],
    completion: nil)

要求

  • iOS 8.0+
  • swift 3.0

如果您使用 Swift 2.2 或 2.3,请尝试使用 PopupCollectionViewController 0.0.1。

安装

PopupCollectionViewController 可以通过 CocoaPods 获取。要安装它,只需在 Podfile 中添加以下行:

use_frameworks!
pod "PopupCollectionViewController"

自定义

  • case layout(PopupCollectionViewController.PopupLayout)
  • case animation(PopupCollectionViewController.PopupAnimation)
  • case overlayLayer(CALayer)
  • case popupHeight(CGFloat)
  • case cellWidth(CGFloat)
  • case contentEdgeInsets(CGFloat)

鸣谢

daisuke310vvvPopupController 的启发

许可证

PopupCollectionViewController 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。