Skip to content

corin8823/PopupCollectionViewController

Repository files navigation

PopupCollectionViewController

CI Status Version License Platform

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.

About

PopupCollectionViewController is a collectionView in Popup view

Resources

License

Stars

Watchers

Forks

Packages

No packages published