TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | May 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by corin8823.
To run the example project, clone the repo, and run pod install
from the Example directory first.
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)
If you use Swift 2.2 or 2.3, try PopupCollectionViewController 0.0.1.
PopupCollectionViewController is available through CocoaPods. To install it, simply add the following line to your 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)
Inspired by PopupController in daisuke310vvv
PopupCollectionViewController is available under the MIT license. See the LICENSE file for more info.