Latest 0.2.1
Homepage https://github.com/davamale/AndroidDialogAlert
License MIT
Platforms ios 9.0
Authors

Android dialog alert

This library was created for simple and fast implementation.

Getting started

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.

Example

    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)

Simple Alert

alt text

Alert with Message

alt text

Alert with TextField and Cancel Button

alt text

TODO’s

  • [ ] add show and dismiss custom animations
  • [ ] add background blur effect
  • [ ] add two textfields support (for login)
  • [ ] something on your mind? let me know

Requirements:

  • CocoaPods 1.0.0+
  • iOS 9+

Latest podspec

{
    "name": "AndroidDialogAlert",
    "version": "0.2.1",
    "summary": "This library provides a very simple to use alert very similar to the Android Dialog Alert. Very easy to use and very easy to customize.",
    "description": "This library was created to be the simpleme meant for ease of implementation. Although some customization is provided.",
    "homepage": "https://github.com/davamale/AndroidDialogAlert",
    "screenshots": [
        "https://github.com/davamale/AndroidDialogAlert/blob/master/androidAlert_message.gif",
        "https://github.com/davamale/AndroidDialogAlert/blob/master/androidAlert_message_textfield_cancel.gif",
        "https://github.com/davamale/AndroidDialogAlert/blob/master/androidAlert_simple.gif"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "davamale": "[email protected]"
    },
    "source": {
        "git": "https://github.com/davamale/AndroidDialogAlert.git",
        "tag": "0.2.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Pod/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This