Latest 0.1.9
Homepage https://github.com/lyc2345/Alert
License MIT
Platforms ios 8.0
Authors

Alert

[![CI Status](http://img.shields.io/travis/Stan Liu/Alert.svg?style=flat)](https://travis-ci.org/Stan Liu/Alert)
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Beware the storyboard in example uses UIStackView, So it can just runs on above iOS 9.0 device and simulator.
But Alert uses Swift 3.0 can run on above iOS 8 device and simulator.

Requirements

Installation

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

pod 'Alert', :git => 'https://github.com/lyc2345/alert.git'

Usage:

Import Alert

To add a Button to UIAlertController


  Alert.with(title: "Title", message: "Message", style: .alert).bind(button: "Button", style:
  .default, completion: {
    (action1) in  

    )}

then add a Textfield to UIAlertController


  Alert.with(title: "Title", message: "Message", style: .alert).bind(button: "Button", style:
  .default, completion: {
    (action1) in  

    )}.bind(textfield: "Title", placeHolder: "PlaceHolder", secure: false, returnHandler: {
    (textfield1) in

    })

then present this UIAlertController


  Alert.with(title: "Title", message: "Message", style: .alert).bind(button: "Button", style:
  .default, completion: {
    (action1) in  

    )}.bind(textfield: "Title", placeHolder: "PlaceHolder", secure: false, returnHandler: {
    (textfield1) in

    }).show()

Author

Stan Liu, [email protected]

License

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

Latest podspec

{
    "name": "SwiftAlert",
    "version": "0.1.9",
    "summary": "UIAlertController customized to add much buttons or textfields you like",
    "description": "UIAlertController customized to add much buttons or textfields you like and present it. You don't have write many many function to present different type of UIAlertController.",
    "homepage": "https://github.com/lyc2345/Alert",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Stan Liu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lyc2345/Alert.git",
        "tag": "0.1.9"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Alert/Classes/**/*"
}

Pin It on Pinterest

Share This