TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Gilwan Ryu.
Usage
Standard
GWAlert(title: "Title", message: "Message")
.setActionConfirm(title: "OKActionTitle", complete: { action in
// Set Confirm Action
}).setActionCancel(title: "CancelActionTitle", complete: { action in
// set Cancel Action
}).show()
AddTextField
GWAlert(title: "Title", message: "Message")
.addTextField(placeholder: "placeholder", keyboardType: .default)
.setActionConfirm(title: "ActionTitle", complete: { action in
// Set Confirm Action
}, tfHandler: { text in
// Return TextField Text
})
.setActionCancel(title: "ActionTItle", complete: { action in
// set Cancel Action
}).show()
Xcode 8+ , Swift 3.2+
GWSimpleAlert is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'GWSimpleAlert'
Gilwan Ryu, [email protected]
GWSimpleAlert is available under the MIT license. See the LICENSE file for more info.