https://github.com/noppefoxwolf/dcalertcontroller
Alert like Android wear(Delay Confirm)
https://github.com/noppefoxwolf/dcalertcontroller
Last synced: 3 months 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 (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-16T22:24:43.000Z (almost 11 years ago)
- Last Synced: 2025-06-20T14:08:53.050Z (12 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

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.