[![CI Status](http://img.shields.io/travis/Steve Jo/JDropDownAlert.svg?style=flat)](https://travis-ci.org/Steve Jo/JDropDownAlert)
Simple DropDown Alert View For Any iOS Projects.
let alert = JDropDownAlert()
alert.alertWith("U can use just title")
alert.didTapBlock = {
print("Top View Did Tapped")
}
let alert = JDropDownAlert()
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print("Top View Did Tapped")
}
let alert = JDropDownAlert(position: .Top, direction: .ToLeft)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print("Top View Did Tapped")
}
let alert = JDropDownAlert(position: .Top, direction: .ToRight)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print("Top View Did Tapped")
}
let alert = JDropDownAlert(position: .Bottom)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print("Bottom Alert View Did Tapped")
}
let alert = JDropDownAlert(position: .Bottom, direction: .ToLeft)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print("Bottom Alert View Did Tapped")
}
let alert = JDropDownAlert(position: .Bottom, direction: .ToRight)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print("Bottom Alert View Did Tapped")
}
enum AlertPosition {
case Top
case Bottom
}
enum AnimationDirection {
case ToLeft
case ToRight
case Normal
}
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 8.0 +
JDropDownAlert is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "JDropDownAlert"
Add the JDropDownAlert.swift in to your project.
- Steve Jo, trilliwon@gmail.com
- ppth0608, ppth0608@naver.com
JDropDownAlert is available under the MIT license. See the LICENSE file for more info.