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
- Host: GitHub
- URL: https://github.com/kirollossa/kmpopup
- Owner: KirollosSa
- License: mit
- Created: 2018-01-22T15:13:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-21T13:40:48.000Z (over 6 years ago)
- Last Synced: 2025-04-15T11:06:14.231Z (2 months ago)
- Topics: cocoa, cocoa-touch, cocoapod, cocoapods, ios, ios-app, messaging, mobile, mobile-app, objective-c, popup-message, swift
- Language: Swift
- Homepage:
- Size: 313 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KMPopUp
View your message in a simple and easy to use way 🎉
[](https://travis-ci.org/KirollosSa/-KMPopUp)
[](http://cocoapods.org/pods/KMPopUp)
[](http://cocoapods.org/pods/KMPopUp)
[](http://cocoapods.org/pods/KMPopUp)## 📱📱
[](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.storyboard2 - 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.