The InsetPresentation Swift package provides modal presentation, blatantly snatched from Daniel Gauthier.
+---------------------+
| |
| +---------------+ |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| +---------------+ |
| |
+---------------------+
Example call site might look like this.
let insets = UIEdgeInsets(top: 200, left: 0, bottom: 0, right: 0)
self?.present(vc, interactiveDismissalType: .vertical, insets: insets) {
completion?()
}
📦 Add https://github.com/michaelnisi/InsetPresentation
to your package manifest.
link |
Stars: 1 |
Last commit: 3 years ago |
Adds left and right insets.
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics