Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/noppefoxwolf/dcalertcontroller
- Owner: noppefoxwolf
- Created: 2015-06-16T22:16:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-16T22:24:43.000Z (over 9 years ago)
- Last Synced: 2024-05-02T05:45:54.800Z (7 months ago)
- Language: Swift
- Homepage:
- Size: 332 KB
- Stars: 18
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.