Swiftpack.co -  michaelnisi/InsetPresentation as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
michaelnisi/InsetPresentation
Modal presentation with insets 🖼
.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 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

🍻 Astra
7 weeks ago

Adds left and right insets.

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