Skip to content

Commit c828ebe

Browse files
committed
docs: update README
1 parent 13a85a2 commit c828ebe

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![CocoaPods](https://img.shields.io/cocoapods/v/SemiModalViewController.svg?maxAge=2592000)](muyexi)
33
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/muyexi/SemiModalViewController/blob/master/LICENSE)
44

5-
Swift Port of [KNSemiModalViewController](https://github.com/kentnguyen/KNSemiModalViewController), present view / view controller as bottom-half modal.
5+
`UIViewController` extension to present view / view controller as bottom-half modal.
66

77
<p align="center">
88
<img src="Demo.gif" width="30%">
@@ -49,6 +49,12 @@ presentSemiView(view, options: options) {
4949
}
5050
```
5151

52+
Dismiss a presented view / view controller:
53+
54+
```swift
55+
dismissSemiModalView()
56+
```
57+
5258
Default options:
5359

5460
```swift
@@ -62,6 +68,10 @@ SemiModalOption.transitionStyle : .slideUp,
6268
SemiModalOption.disableCancel : true
6369
```
6470

71+
## Credits
72+
73+
SemiModalViewController is based on [KNSemiModalViewController](https://github.com/kentnguyen/KNSemiModalViewController).
74+
6575
## License
6676

6777
SemiModalViewController is released under the MIT license. See LICENSE for details.

0 commit comments

Comments
 (0)