GWSimpleAlert 1.0.8

GWSimpleAlert 1.0.8

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Gilwan Ryu.



  • By
  • Gilwan Ryu

GWSimpleAlert



Example

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()

Requirements

Xcode 8+ , Swift 3.2+

Installation

GWSimpleAlert is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'GWSimpleAlert'

Author

Gilwan Ryu, [email protected]

License

GWSimpleAlert is available under the MIT license. See the LICENSE file for more info.