Latest 0.0.6
Homepage https://github.com/00aney/THDPopup
License MIT
Platforms ios 8.0, requires ARC
Dependencies Kingfisher, SnapKit, ManualLayout
Frameworks UIKit
Authors

A simple custom popup view controller.

2017-03-16 8 50 34

Example

Here’s an example usage.

final class MyViewController: UIViewController {

  override func viewDidAppear(_ animated: Bool) {

    let popupViewController = THDPopupViewController(
      width: CGFloat(360),
      top: CGFloat(110),
      imageURL: "https://dummyimage.com/300x400",
      leftButtonTitle: "No thanks",
      rightButtonTitle: "✕ close",
      imageButtonDidTap: {
        print("imageButtonDidTap")
    },
      leftButtonDidTap: {
        print("leftButtonDidTap")
    },
      rightButtonDidTap: {
        print("rightButtonDidTap")
    })

    self.present(popupViewController, animated: true, completion: nil)

  }

}

Installation

pod 'THDPopup', '~> 0.0'

License

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

Latest podspec

{
    "name": "THDPopup",
    "version": "0.0.6",
    "summary": "A simple custom popup view controller.",
    "homepage": "https://github.com/00aney/THDPopup",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Taedong Kim": "[[email protected]]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/00aney/THDPopup.git",
        "tag": "0.0.6"
    },
    "source_files": "THDPopup/**/*.{swift}",
    "frameworks": "UIKit",
    "requires_arc": true,
    "dependencies": {
        "Kingfisher": [
            "~> 3.3"
        ],
        "SnapKit": [
            "~> 3.2"
        ],
        "ManualLayout": [
            "~> 1.3"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This