Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/noppefoxwolf/dcalertcontroller

Alert like Android wear(Delay Confirm)
https://github.com/noppefoxwolf/dcalertcontroller

Last synced: 29 days ago
JSON representation

Alert like Android wear(Delay Confirm)

Awesome Lists containing this project

README

        

# DCAlertController
Alert like Android wear

![](https://raw.githubusercontent.com/noppefoxwolf/DCAlertController/master/sample.gif)

Auto Confirm Alert written in Swift like android wear.

## Easy to use.
```swift
let vc = DCAlertController(title: "test title", message: "message")
vc.setConfirmAction { (controlelr) -> Void in
self.dismissViewControllerAnimated(true, completion: { () -> Void in
print("confirm!!")
})
}
vc.setCancelAction { (controlelr) -> Void in
self.dismissViewControllerAnimated(true, completion: { () -> Void in
print("cancel!!")
})
}
presentViewController(vc, animated: true, completion: nil)
```

## Installation
add DCAlertController.swift your project.

## License
This software is released under the MIT License.