Swiftpack.co - Package - michaelnisi/InsetPresentation

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

michaelnisi/InsetPresentation

Modal presentation with insets ๐Ÿ–ผ

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: 6 days ago

Releases

๐Ÿฆนโ€โ™‚๏ธ Lupin - 2021-02-14T09:02:21

Letโ€™s go! ๐Ÿš€