Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martinp7r/mpmodalview
https://github.com/martinp7r/mpmodalview
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/martinp7r/mpmodalview
- Owner: MartinP7r
- License: mit
- Created: 2018-11-06T02:48:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T23:59:59.000Z (about 6 years ago)
- Last Synced: 2024-12-01T15:43:13.627Z (about 1 month ago)
- Language: Swift
- Size: 2.77 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MPModalView
[![Version](https://img.shields.io/cocoapods/v/MPModalView.svg?style=flat)](https://cocoapods.org/pods/MPModalView)
[![License](https://img.shields.io/cocoapods/l/MPModalView.svg?style=flat)](https://cocoapods.org/pods/MPModalView)
[![Platform](https://img.shields.io/cocoapods/p/MPModalView.svg?style=flat)](https://cocoapods.org/pods/MPModalView)## Example
![](https://github.com/cyrus86/MPModalView/blob/master/screencapture.gif)
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
MPModalView is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'MPModalView'
```## Usage
```swift
let modal = MPModalViewController(actionButtons: [ActionButton(type: .cancel),
ActionButton(type: .ok) { print("some callback") }],
contentView: .text(title: "Modal", body: "with OK & Cancel button"))
modal.presentOnTop()
```## Author
Martin Pfundmair, [email protected]
## License
MPModalView is available under the MIT license. See the LICENSE file for more info.