STZPopupView 1.4.0

STZPopupView 1.4.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2018
SPMSupports SPM

Maintained by STAR_ZERO.



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 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.