/STZPopupView

Customizable simple popup view in iOS

Primary LanguageSwiftMIT LicenseMIT

STZPopupView

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 7.0+
  • Xcode 6.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, kenji@star-zero.com

License

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