PopupCollectionViewController 0.2.2

PopupCollectionViewController 0.2.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by corin8823.



PopupCollectionViewController

Description and appetize.io`s DEMO

Usage

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)

Custom

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)

Requirements

  • iOS 8.0+
  • swift 3.0

If you use Swift 2.2 or 2.3, try PopupCollectionViewController 0.0.1.

Installation

PopupCollectionViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:

use_frameworks!
pod "PopupCollectionViewController"

Customization

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

Acknowledgments

Inspired by PopupController in daisuke310vvv

License

PopupCollectionViewController is available under the MIT license. See the LICENSE file for more info.