Swiftpack.co - michaelnisi/InsetPresentation as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by michaelnisi.
michaelnisi/InsetPresentation 1.1.1
Modal presentation with insets 🖼
⭐️ 1
🕓 3 years ago
iOS
.package(url: "https://github.com/michaelnisi/InsetPresentation.git", from: "1.1.1")

InsetPresentation

The InsetPresentation Swift package provides modal presentation, blatantly snatched from Daniel Gauthier.

+---------------------+
|                     |
|  +---------------+  |
|  |               |  |
|  |               |  |
|  |               |  |
|  |               |  |
|  |               |  |
|  |               |  |
|  |               |  |
|  |               |  |
|  |               |  |
|  |               |  |
|  |               |  |
|  +---------------+  |
|                     |
+---------------------+

Example

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?()
}

Install

📦 Add https://github.com/michaelnisi/InsetPresentation to your package manifest.

License

MIT License

GitHub

link
Stars: 1
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

🍻 Astra
3 years ago

Adds left and right insets.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics