Latest 1.4.0
Homepage https://github.com/STAR-ZERO/STZPopupView
License MIT
Platforms ios 8.0, requires ARC
Authors

Version Carthage compatible

Customizable simple popup view in iOS. Implemented as an extension of UIViewController.

Screenshot

Usage

import

import STZPopupView

Show popup

in UIViewController

let popupView = UIView()
// ..setup popupView..

presentPopupView(popupView)

Dismiss popup

in UIViewController

dismissPopupView()

Customization

let popupConfig = STZPopupViewConfig()
popupConfig.dismissTouchBackground = false
popupConfig.cornerRadius = 10
// ...more customize

presentPopupView(popupView, config: popupConfig)

Customize option see Source/STZPopupViewConfig.swift

Requirements

  • iOS 8.0+
  • Xcode 6.3.1+

Installation

CocoaPods

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

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'STZPopupView'

Note: need install cocoapods >= 0.36, and iOS deployment target >= 8.0

[sudo] gem install cocoapods

Carthage

STZPopupView can be install using the Carthage. Add your Cartfile:

github "STAR-ZERO/STZPopupView"

Manually

Copy source file to project.

  • Source/STZPopupViewConfig.swift
  • Source/UIViewController+STZPopupView.swift

Author

Kenji Abe, [email protected]

License

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

Latest podspec

{
    "name": "STZPopupView",
    "version": "1.4.0",
    "summary": "Customizable simple popup view in iOS.",
    "homepage": "https://github.com/STAR-ZERO/STZPopupView",
    "license": "MIT",
    "authors": {
        "Kenji Abe": "[email protected]"
    },
    "source": {
        "git": "https://github.com/STAR-ZERO/STZPopupView.git",
        "tag": "1.4.0"
    },
    "social_media_url": "https://twitter.com/STAR_ZERO",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Source/*.swift"
}

Pin It on Pinterest

Share This