⚠️ DEPRECATED, NO LONGER MAINTAINED
# JDropDownAlert
![Swift](https://img.shields.io/badge/Swift-4.0-orange.svg)
[![Platform](https://img.shields.io/cocoapods/p/JDropDownAlert.svg?style=flat)](http://cocoapods.org/pods/JDropDownAlert)
![spm](https://img.shields.io/badge/SPM-ready-orange.svg)
[![Version](https://img.shields.io/cocoapods/v/JDropDownAlert.svg?style=flat)](http://cocoapods.org/pods/JDropDownAlert)
[![License](https://img.shields.io/cocoapods/l/JDropDownAlert.svg?style=flat)](http://cocoapods.org/pods/JDropDownAlert)
[![Build Status](https://travis-ci.org/trilliwon/JDropDownAlert.svg?branch=master)](https://travis-ci.org/trilliwon/JDropDownAlert)
[![codecov](https://codecov.io/gh/trilliwon/JDropDownAlert/branch/master/graph/badge.svg)](https://codecov.io/gh/trilliwon/JDropDownAlert)
[![Issues](https://img.shields.io/github/issues/trillione/JDropDownAlert.svg?style=flat)](https://github.com/trillione/JDropDownAlert/issues?state=open)
## JDropDownALert
Simple DropDown Alert View For Any iOS Projects.
# Usage
### Top
```Swift
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")
}
```
### Top With Directions
```Swift
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, topLabelColor: UIColor.white, messageLabelColor: UIColor.darkGray, backgroundColor: UIColor.brown)
// alert.alertWith(titleString, message: messageString, topLabelColor: UIColor.white, messageLabelColor: UIColor.darkGray)
// alert.alertWith(titleString, message: messageString, topLabelColor: UIColor.white)
// alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print("Top View Did Tapped")
}
```
### Bottom
```Swift
let alert = JDropDownAlert(position: .bottom)
alert.alertWith(titleString, message: messageString)
alert.didTapBlock = {
print("Bottom Alert View Did Tapped")
}
```
### Bottom With Directions
```Swift
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")
}
```
### Different Positions and Animation Directions
```Swift
enum AlertPosition {
case top
case bottom
}
enum AnimationDirection {
case toLeft
case toRight
case normal
}
```
## Requirements
+ iOS 8.0 +
+ swift 3.0
+ Xcode 8.0
## Installation
JDropDownAlert is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "JDropDownAlert"
```
Add the JDropDownAlert.swift in to your project.
## Credits
Author
- [trilliwon](https://github.com/trilliwon)
Contributors
- [ppth0608](https://github.com/ppth0608)
- [Dudi00](https://github.com/Dudi00)
##### Any contribution is welcome. Just submit a pull request.
## License
JDropDownAlert is available under the MIT license. See the LICENSE file for more info.
## Demo Gifs
![top alert](https://cloud.githubusercontent.com/assets/14218787/15983592/e208537c-2fe7-11e6-85d5-55ce0abfc798.gif)
![bottom alert](https://cloud.githubusercontent.com/assets/14218787/15983591/e1ec599c-2fe7-11e6-8956-54ae855d868a.gif)
没有合适的资源?快使用搜索试试~ 我知道了~
适用于任何iOS项目的简单下拉警报视图。_Swift_Rub.zip
共23个文件
swift:5个
plist:3个
yml:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 101 浏览量
2023-04-05
13:02:59
上传
评论
收藏 22KB ZIP 举报
温馨提示
适用于任何iOS项目的简单下拉警报视图。_Swift_Rub.zip
资源推荐
资源详情
资源评论
收起资源包目录
适用于任何iOS项目的简单下拉警报视图。_Swift_Rub.zip (23个子文件)
JDropDownAlert-master
JDropDownAlert
Base.lproj
Main.storyboard 10KB
LaunchScreen.storyboard 2KB
AppDelegate.swift 248B
ViewController.swift 2KB
Info.plist 1KB
Assets.xcassets
AppIcon.appiconset
Contents.json 1KB
.swift-version 4B
Package.swift 76B
codecov.yml 2KB
.travis.yml 196B
Source
JDropDownAlert.swift 10KB
LICENSE 1KB
JDropDownAlert.xcodeproj
xcshareddata
xcschemes
JDropDownAlert.xcscheme 4KB
project.pbxproj 18KB
project.xcworkspace
xcshareddata
IDEWorkspaceChecks.plist 238B
contents.xcworkspacedata 159B
JDropDownAlert.podspec 947B
.gitignore 618B
travis
travis.sh 160B
travis_after_success.sh 253B
README.md 4KB
JDropDownAlertTests
JDropDownAlertTests.swift 3KB
Info.plist 680B
共 23 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功