Customizable simple popup view in iOS. Implemented as an extension of UIViewController.
import STZPopupView
in UIViewController
let popupView = UIView()
// ..setup popupView..
presentPopupView(popupView)
in UIViewController
dismissPopupView()
let popupConfig = STZPopupViewConfig()
popupConfig.dismissTouchBackground = false
popupConfig.cornerRadius = 10
// ...more customize
presentPopupView(popupView, config: popupConfig)
Customize option see Source/STZPopupViewConfig.swift
- iOS 8.0+
- Xcode 6.3.1+
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
STZPopupView can be install using the Carthage. Add your Cartfile:
github "STAR-ZERO/STZPopupView"
Copy source file to project.
- Source/STZPopupViewConfig.swift
- Source/UIViewController+STZPopupView.swift
Kenji Abe, kenji@star-zero.com
STZPopupView is available under the MIT license. See the LICENSE file for more info.