测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布日期最新发布 | 2017年5月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 corin8823 维护。
要运行示例项目,先克隆 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)
如果您使用 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)
受 daisuke310vvv 的 PopupController 的启发
PopupCollectionViewController 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。