Latest 0.1.0
Homepage https://github.com/azatgoktas/AGAlertView
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

ScreenShots

Single Button Default Image

Demo

Two Button Custom Image

Demo

Two Button With Cancel

Demo

Example

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

Requirements

  • iOS 9 or newer

Installation

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

pod 'AGAlertView'

Author

Azat Goktas, [email protected]

How To Use

Import The AGAlertView

import AGAlertView

Adding Button.

let button1 = AGButton(frame: .zero, title: "Button1")
AGAlert().showAlert(title: "Hey Yo", subtitle: "Thats it", buttons: button1)

Adding button and custom image. You can simply add action to your button.

let button1 = AGButton(frame: .zero, title: "Button1")
let button2 = AGButton(title: "Button2", selector: #selector(buttonTapped), target: self)
AGAlert().showAlert(title: "Hey Yo", subtitle: "Thats it", buttons: button1,button2, image: UIImage(named: "frog"))

Adding button with type of cancel.

let button1 = AGButton(frame: .zero, title: "Button1")
let button2 = AGButton(title: "Cancel",buttonStyle: .cancel)
AGAlert().showAlert(title: "Hey Yo", subtitle: "Thats it", buttons: button2,button1)

License

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

Latest podspec

{
    "name": "AGAlertView",
    "version": "0.1.0",
    "summary": "Custom Good Looking Alert View",
    "description": "Custom UIAlertView",
    "homepage": "https://github.com/azatgoktas/AGAlertView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/azatgoktas/AGAlertView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "AGAlertView/Classes/**/*",
    "resources": "AGAlertView/Assets/*.xcassets",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This