An open API service indexing awesome lists of open source software.

https://github.com/kirollossa/kmpopup

Show your message in Popup Message with Duration
https://github.com/kirollossa/kmpopup

cocoa cocoa-touch cocoapod cocoapods ios ios-app messaging mobile mobile-app objective-c popup-message swift

Last synced: 2 months ago
JSON representation

Show your message in Popup Message with Duration

Awesome Lists containing this project

README

        

# KMPopUp

View your message in a simple and easy to use way 🎉

[![CI Status](http://img.shields.io/travis/KirollosSa/-KMPopUp.svg?style=flat)](https://travis-ci.org/KirollosSa/-KMPopUp)
[![Version](https://img.shields.io/cocoapods/v/KMPopUp.svg?style=flat)](http://cocoapods.org/pods/KMPopUp)
[![License](https://img.shields.io/cocoapods/l/KMPopUp.svg?style=flat)](http://cocoapods.org/pods/KMPopUp)
[![Platform](https://img.shields.io/cocoapods/p/KMPopUp.svg?style=flat)](http://cocoapods.org/pods/KMPopUp)

## 📱📱
[![Demo Doccou alpha](https://media.giphy.com/media/1qWloKKLPUdvsL6ocO/giphy.gif)](https://www.youtube.com/watch?v=Pwvm9L0p2G0)

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

# Requirements

## Installation

KMPopUp is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```swift
pod 'KMPopUp'

pod 'KMPopUp' , '~> 1.1.5' // for swift 3.2
pod 'KMPopUp' , '~> 1.2.0' // for swift 4.2
```

## Setup ✋
1 - Just Add new View Controller in Main.storyboard

2 - And set its 'Class' with "KMPopViewController" and also its 'Storyboard ID' with the same name of Class "KMPopViewController" ."

## Usage
```swift
import KMPopUp

// Optional parameters
// 'withAlpha' is optional parameter with default value = 0.8

// message hide with duration
KMPopUp.ShowMessageWithDuration(controller: self, message: "YOUR MESSAGE", image: "YOUR IMAGE", duration: 2.0,withAlpha: 0.8)

// message hide on tab
KMPopUp.ShowMessage(controller: self, message: "YOUR MESSAGE", image: "YOUR IMAGE" ,withAlpha: 0.8)

// message popup over screen
KMPopUp.ShowScreenPopUp(self, message: "YOUR MESSAGE", image: "YOUR IMAGE", withAlpha: 0.8)

```

## Author

Kirollos Maged, E-mail : [email protected] 😊

#### License

KMPopUp is available under the MIT license. See the LICENSE file for more info.