Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelnisi/insetpresentation
Modal presentation with insets 🖼
https://github.com/michaelnisi/insetpresentation
ios modal presentation
Last synced: about 1 month ago
JSON representation
Modal presentation with insets 🖼
- Host: GitHub
- URL: https://github.com/michaelnisi/insetpresentation
- Owner: michaelnisi
- License: mit
- Created: 2021-02-13T19:33:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-19T10:44:20.000Z (over 3 years ago)
- Last Synced: 2024-10-13T18:45:40.233Z (2 months ago)
- Topics: ios, modal, presentation
- Language: Swift
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# InsetPresentation
The InsetPresentation Swift package provides modal presentation, blatantly snatched from [Daniel Gauthier](https://danielgauthier.me/2020/02/24/indie5-1.html).
```
+---------------------+
| |
| +---------------+ |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| +---------------+ |
| |
+---------------------+
```## Example
Example call site might look like this.
```swift
let insets = UIEdgeInsets(top: 200, left: 0, bottom: 0, right: 0)self?.present(vc, interactiveDismissalType: .vertical, insets: insets) {
completion?()
}
```## Install
📦 Add `https://github.com/michaelnisi/InsetPresentation` to your package manifest.
## License
[MIT License](https://github.com/michaelnisi/InsetPresentation/blob/master/LICENSE)