Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/STAR-ZERO/STZPopupView
Customizable simple popup view in iOS
https://github.com/STAR-ZERO/STZPopupView
carthage cocoapods ios swift
Last synced: 6 minutes ago
JSON representation
Customizable simple popup view in iOS
- Host: GitHub
- URL: https://github.com/STAR-ZERO/STZPopupView
- Owner: STAR-ZERO
- License: mit
- Created: 2015-03-03T12:43:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-29T02:54:38.000Z (about 6 years ago)
- Last Synced: 2024-11-10T18:20:44.301Z (1 day ago)
- Topics: carthage, cocoapods, ios, swift
- Language: Swift
- Size: 80.1 KB
- Stars: 57
- Watchers: 9
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# STZPopupView
[![Version](https://img.shields.io/cocoapods/v/STZPopupView.svg?style=flat)](http://cocoadocs.org/docsets/STZPopupView) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/STAR-ZERO/STZPopupView)
Customizable simple popup view in iOS. Implemented as an extension of UIViewController.
![Screenshot](https://raw.githubusercontent.com/STAR-ZERO/STZPopupView/master/screenshot.gif)
## Usage
### import
```swift
import STZPopupView
```### Show popup
in UIViewController
```swift
let popupView = UIView()
// ..setup popupView..presentPopupView(popupView)
```### Dismiss popup
in UIViewController
```swift
dismissPopupView()
```### Customization
```swift
let popupConfig = STZPopupViewConfig()
popupConfig.dismissTouchBackground = false
popupConfig.cornerRadius = 10
// ...more customizepresentPopupView(popupView, config: popupConfig)
```Customize option see [Source/STZPopupViewConfig.swift](https://github.com/STAR-ZERO/STZPopupView/blob/master/Source/STZPopupViewConfig.swift)
## Requirements
* iOS 8.0+
* Xcode 6.3.1+## Installation
### CocoaPods
STZPopupView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
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](https://github.com/Carthage/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.