1
1
# WSPopup
2
2
3
3
[ ![ Carthage Compatible] ( https://img.shields.io/badge/Carthage-compatible-4BC51D.svg )] ( https://github.com/Carthage/Carthage )
4
+ [ ![ SwiftPM Compatible] ( https://img.shields.io/badge/SwiftPM-Compatible-brightgreen.svg )] ( https://swift.org/package-manager )
4
5
[ ![ Swift 5.0] ( https://img.shields.io/badge/Swift-5.0-orange.svg?style=flat )] ( https://developer.apple.com/swift/ )
5
6
[ ![ Platforms iOS] ( https://img.shields.io/badge/Platforms-iOS-lightgray.svg?style=flat )] ( http://www.apple.com/ios/ )
6
7
[ ![ License MIT] ( https://img.shields.io/badge/License-MIT-lightgrey.svg?style=flat )] ( https://opensource.org/licenses/MIT )
@@ -18,7 +19,7 @@ let exampleSignInView = ExampleSignInView()
18
19
exampleSignInView.userTextField .text = " JohnDoe123"
19
20
20
21
let popupViewController = WSPopupViewController (popupView : exampleSignInView)
21
- popupViewController.modalPresentationStyle = .overCurrentContext
22
+ popupViewController.modalPresentationStyle = . overFullScreen
22
23
popupViewController.modalTransitionStyle = .crossDissolve
23
24
show (popupViewController, sender : self )
24
25
```
@@ -27,7 +28,7 @@ You can also just give the `UIView` Type:
27
28
28
29
``` swift
29
30
let popupViewController = WSPopupViewController (popupViewType : ExampleSignInView.self )
30
- popupViewController.modalPresentationStyle = .overCurrentContext
31
+ popupViewController.modalPresentationStyle = .overFullScreen
31
32
popupViewController.modalTransitionStyle = .crossDissolve
32
33
show (popupViewController, sender : self )
33
34
```
@@ -61,7 +62,7 @@ Download all the source files and drop them into your project.
61
62
## Requirements
62
63
63
64
* iOS 11.0+
64
- * Xcode 10.2 (Swift 5.0)
65
+ * Xcode 10+ (Swift 5.0)
65
66
66
67
# Contributing
67
68
0 commit comments