TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by David Martinez.
This library was created for simple and fast implementation.
To get the best possible results (with some updates over time) I recommend the installation using cocoa pods:
pod 'AndroidDialogAlert'
Also, you can download the project and installed it manually. All required files are inside Pod/Classes
, just copy and paste them.
let alert = DialogAlertView(titleText: "Alert", buttonText: "OK")
alert.messageText = "This is a test message"
alert.textField { (textField, range, string) in
if string == "s" {
alert.dialogColor = .red
return
}
alert.dialogColor = .white
}
alert.buttonCompletion = { (alert) in
// do some action or validation
alert.dismiss(animated: true, completion: nil)
}
present(alert, animated: true, completion: nil)