CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2016 |
SPMSupports SPM | ✓ |
Maintained by Chester Liu.
An UIAlertView replacement written in Swift with a modern chainable API and highly customizable UI, inspired by SIAlertView and SweetAlert-iOS.
Add JLAlertView.swift
in your project.
JLAlertView(title: "Default Style", message: "Standard Alert")
.addTextFieldWithConfigurationHandler({ (textField) in
textField.placeholder = "Username"
})
.addTextFieldWithConfigurationHandler({ (textField) in
textField.placeholder = "Password"
})
.addButttonWithTitle("Cancel", style: .Cancel, action: nil)
.addButttonWithTitle("OK", action:{(title, alert) in
let username = alert.textFields[0].text
let password = alert.textFields[1].text
print(username)
print(password)
})
.show()